There are 6 types of Error Name values. Each one of them is briefly explained as follows:
Eval Error – Thrown when coming across an error in eval() (Newer JS releases don’t have it)
Range Error – Generated when a number outside the specified range is used
Reference Error – It comes into play when an undeclared variable is used
Syntax Error – When the incorrect syntax is used, we get this error
Type Error – This error is thrown when a value outside the range of data types is tried to be used
URI Error – Generated due to the use of illegal characters