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