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