結果 : how do you define a method in javascript class