Advanced console.log Tips & Tricks

The console is the built-in debugger of the browser. Many developers use console.log() all the time to print messages and debug problems in their code. But this tool has a lot more to offer than you may have ever realized!

Intro — The Console Object

Let’s try something simple and run:

console.log(console)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Liad Shiran

Liad Shiran

Frontend Software Engineer, writer, open-source contributor