結果 : how to pass a value in javascript function