Console and Logging


We discuss what (and where) the console is, why it's useful, and show a little of how it works.

The console: what it is, where you can find it, and what you use it for.

The console is very commonly used to display system administrative messages.

Your browser and your computer both have their own consoles.

Once you become familiar with it, you will find it to be a very useful and powerful tool.

In Javascript, the console is used as a great tool for debugging and finding out where in your code there's a problem.

One of the most important terms you'll need to remember is "console.log()".

The process of doing this can be put anywhere in the lines of code to help find, identify, and ultimately fix specific issues.

Using the Chrome browser and the Chrome console, if we type in "console.log("Free Code Camp rocks!");", the console will literally display "Free Code Camp rocks!".

This will also work with numbers and booleans, which are true/false statements.

When consoling words, it's important to put it inside of quotations so it recognizes it's a string.