Common exception types

  • TypeError — wrong type for operation (JS: property on undefined; Python: 1 + "str")
  • ValueError — right type, invalid value (percentage = 150; int("hello"))
  • KeyError (Python) / ReferenceError (JS) — missing key or undefined variable
  • NullPointerException (Java) — method called on a null reference
  • ImportError (Python) — module or name not found
  • IndexError — list/array index out of bounds

Question 0 of 5

You see: TypeError: Cannot read properties of undefined (reading 'name')
What type of problem caused this error?