結果 : how to create type in javascript