結果 : call function inside constructor javascript