Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript

JavaScript Error Types

Which JavaScript error occurs when you try to use an undeclared variable?

Answer options

  • TypeError
  • ReferenceError
  • SyntaxError
  • RangeError

You can check the correct answer by solving this task in the CodeWorlds game.