Chrome Dev Tools: Console Tab
Info and mini-lesson on the 'Console' tab of Chrome Dev Tools. Check out more in-depth documentation here: https://developers.google.com/web/tools/javascript/console/
The Console panel provides two primary functions: logging diagnostic information in the development process and
providing a shell prompt which can be used to interact with the document and DevTools.
When using the console, you can view raw or structured data by using standard JS statements and console-specific commands.
An example of structured data would be the information returned from an API in JSON. I used this a lot when I was building my first ziplines for Free Code Camp.
You should know that messages stack up, and you can clear them by typing and entering 'clear()'. You can also save the log by selecting 'Preserve Log'.
There are different commands that will log differently, like console.log() for basic logging, console.error() & console.warn() for "eye catching stuff".
The console can track exceptions, which basically means when something goes wrong. It can even pause the code during those exceptions, a function that you might remember from the 'Source' tab.
Other Videos By freeCodeCamp.org
2016-03-27 | Web Design: Development vs Design |
2016-03-27 | Computer Basics: What does 'Open Source' mean? |
2015-09-23 | Computer Security Tips for Beginners |
2015-09-22 | FCC Computer Basics 11: IP Addresses |
2015-09-20 | Computer Basics 14: Content Delivery Networks |
2015-09-20 | The DOM: What's the Document Object Model? |
2015-09-20 | Big O Notation: A Few Examples |
2015-09-20 | The DOM: Style in the Header, Script in the Footer |
2015-09-20 | Big O Notation: What It Is and Why You Should Care |
2015-08-24 | Chrome Dev Tools: Summary Tab |
2015-08-24 | Chrome Dev Tools: Console Tab |
2015-08-24 | Chrome Dev Tools: Audits Tab |
2015-08-24 | Chrome Dev Tools: Resources Tab |
2015-08-24 | Chrome Dev Tools: Memory Tab |
2015-08-24 | Chrome Dev Tools: Timeline Tab |
2015-08-24 | Chrome Dev Tools: Sources Tab |
2015-08-24 | Chrome Dev Tools: Network Tab |
2015-08-24 | Chrome Dev Tools: Elements Tab |
2015-08-23 | JavaScript Lingo: Regular Expressions |
2015-08-23 | JavaScript Lingo: Loops |
2015-08-23 | JavaScript Lingo: Math |