結果 : assign function result to variable javascript