結果 : correct way to define a function without parameters in javascript