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