結果 : how to check undefined in javascript