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