Diagnose and Log to Console
Console logging is a powerful way to inspect what your page or application does. Let’s start with console.log() and explore other advanced usage.
I wish I had a pound for every time I’ve typed ‘console.log( foo )
‘, I’d be a multimillionaire by now. Seriously though, it’s good documentation and it also contains info about the less commonly used console methods. Worth a read if you’re just getting into JavaScript development.