結果 : how to pass value to a function in javascript