結果 : how to call a method inside another method in javascript