結果 : how to use variable outside function in javascript