結果 : how to pass a variable as parameter in javascript function