Coding, while fun, can also get pretty boring.
There are days when you start coding, you realize that something is wrong and you get very frustrated. It’s even more annoying when your code is running, but you can’t figure out why it’s not working properly; when there is something in your code that you need to fix.
Developer, meet the console. You will be spending a lot of time in the console during your time as a developer, so this is something you will need to familiarize yourself with.
The console is a place where you can view messages while your application is running and where you can manipulate the content of a web page.
You can tell your code to log messages to the console and they will be displayed when pointed at them. You can also use the console to modify variables, values, and inspect values ‚Äã‚Äãstored in a variable.
To display your console, you need to open the developer tools. In Chrome, you can do this using Ctrl + Shift + I on Windows or Cmd + Alt + I on Mac. In Firefox, you can open Developer Tools using Command + Option + K.