Mistakes… Whether they are small errors in judgement or epic failures we don’t like to make them, but we can learn from them. Mistakes in software development usually produce errors at runtime that stop the code in its tracks or create output that leave us scratching our heads wondering what went wrong. Flaws in code can also create vulnerabilities that leave our systems open to attacks from malicious parties. In this video we will be talking about making mistakes and detecting errors in JavaScript code using the browser console. If you watch this video in it's entirety you will be able to:
Open the console in the Chrome browser on a PC and a Mac
Determine what error may have occurred
Identify the line number where an error is suspected
Test snippets of code using the console
Testing and detecting errors is part of the programming process. You’ll improve at troubleshooting as you make errors and learn from them!
Adding the alert fucntion