Computer Basics 21: Chrome JavaScript Console and how Logging works
http://FreeCodeCamp.com is a community of busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.
Follow us on twitter: https://twitter.com/intent/user?screen_name=freecodecamp
Follow us on Twitch: twitch.tv/freecodecamp
Like us on Facebook: https://www.facebook.com/freecodecamp
Follow Quincy on Quora: http://www.quora.com/Quincy-Larson
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 adminstrative messages.
Your browser and your computer both have their own consoles.
Once you become famlliar 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.