結果 : how to pass a variable in javascript function