September 2015
Intermediate to advanced
92 pages
1h 30m
English
CHAPTER 13
![]()
Error Handling
An error is a mistake in the code that the developer needs to fix or handle. For instance, the following line of code triggers a syntax error because of a missing parenthesis.
console.log("Hi";
When an error is encountered, the browser halts execution of the script. Most browsers do not inform the user when an error occurs. Instead, information about the error can be found in the browser’s developer console. This information includes the filename, line number, and a description of the error, as the one seen below.
SyntaxError: missing ) after argument list
While syntax errors are easy to find and resolve, other errors ...
Read now
Unlock full access