結果 : how to throw error message in javascript