結果 : store function result in variable javascript