結果 : how to create a javascript function with parameters