← Quiz: Error Handling and Debugging: all 10 questions
Quiz: Error Handling and Debugging · Question 4 of 10
Which error type do you get from undefined.length?
Which error type do you get from undefined.length?
- A.ReferenceError
- B.SyntaxError
- C.TypeError
- D.RangeError
Answer & explanation
Correct answer: TypeError
Reading a property of undefined or null is a TypeError.
Can you get the rest right without peeking?
Take the timed Quiz: Error Handling and Debugging quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →