結果 : define function inside object javascript