結果 : declare function inside object javascript