The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Log Levels and Semantic Methods

Log Levels and Semantic Methods

4:38
Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript console object offers many methods to make your life easier - start learning them here!
Watch this lesson now
Avatar
egghead.io

Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript console object offers many methods to make your life easier - start learning them here!

Avatar
Steve Lee

Really useful thanks. I learnt a few things I'd missed when console grew up.

One you missed out that I often use is console.dir(). This gives you the a pretty print of key props when logging a DOM object.

Also I agree .assert() should be avoided. Put that in your unit tests so it fails your build process!

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?