結果 : how to use one variable in another function in javascript