Source Unsplash.

3 little console.log tricks.

I’m quite old-school when it comes to debugging JavaScript applications. I usually prefer to place a simple console.log in my code instead of spinning off the debugger. Here are some tiny console.log tricks that can make your life (at least a little bit) easier:

Wrap your output

Wrapping your output gives you the object name out of the box. This might seem useless, but it makes you a bit…

--

--

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