結果 : how to declare function inside object in javascript