結果 : how to access a variable outside of a function in javascript