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 Code Smell in Javascript ?

What is Event Capturing in Javascript ?

What are Advantages of Using External Javascript ?

JavaScript Getting Absolute Value

JavaScript Making Lowercase