Step 12. Errors
Errors while writing programs are normal.
The important thing is to understand where the error is.
- The editor warns you about errors using an X icon
on the left-hand side. Hover on it for info.
- When you save the file, you will be warned again in the pop-up.
- Some errors cannot be detected in the editor
and you will only find out when you run the program.
- Errors found when the program is run are displayed in the
To see the console, press Ctrl-Shift-J on Chrome and Firefox,
or F12 on Edge and IE.