結果 : how to catch undefined in javascript