JavaScript Error name
The name property is used to either set or return the name of an error.
Syntax:-
Its syntax is:- errorObj.name
Return:-
Its return is:- name of error
Further Explanation:-
There is a total of six different values that can be returned by error property. These are:-
Error NameDescription EvalErrorError at execution. RangeErrorA number out of range has occurred ReferenceErrorAn illegal reference has occurred SyntaxErrorA syntax error has occurred TypeErrorA type error has occurred URIErrorAn error in encodeURI() has occurred