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