結果 : javascript set variable to return value of function