結果 : how to use a variable declared in another function javascript