What are the different error names from error object

Posted by Jennifer | Updated on

There are 6 different types of error names returned from error object,

Error NameDescription
EvalErrorAn error has occurred in the eval() function
RangeErrorAn error has occurred with a number “out of range”
ReferenceErrorAn error due to an illegal reference
SyntaxErrorAn error due to a syntax error
TypeErrorAn error due to a type error
URIErrorAn error due to encodeURI()

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers