結果 : define variable outside function javascript