Loading lesson path
Concept visual
JavaScript has a built in error object that provides error information when an error occurs. The error object provides two useful properties: name and message.
Sets or returns an error message (a string)
Six different values can be returned by the error name property:
Formula
Deprecated - use SyntaxError insteadA number "out of range" has occurred Try it »
Try it »
Try it »
Try it »
Try it »
Do not use these properties and methods in public web sites. They will not work in all browsers.