What are Different Error Types in Javascript ?

Below are primary error types in javascript...

SyntaxError : Raised when syntax error occurs while parsing the Javascript code.

RangeError : Raised when numeric value exceeds allowed range.

EvalError : Raised when the eval() function is used in an incorrect manner.

ReferenceError : Raised when an invalid reference is used.

TypeError : Raised when type of variable is not as expected.

URIError : Raised when the encodeURI() or decodeURI() functions are used in an inaccurate manner.

InternalError : Raised when internal error in the javascript engine is thrown.



You May Interest

What is Console Object in Javascript ?

What are Asynchronous Scripts in Javascript ?

What is Strict Mode in JavaScript ?

Javascript Removing Elements from Array

JavaScript Taking the Square Root of a Number