The error occurs when you use a predefined syntax incorrectly.
In a case where a variable reference can’t be found or hasn’t been declared, then a Reference error occurs.
An error occurs when a value is used outside the scope of its data type.
There is an error when a range of expected values is required
When the wrong character(s) are used in a URI function, the error is called.
This error occurs internally in the JS engine, especially when it has too much data to handle and the stack grows way over its critical limit.