Source Unsplash.

3 little console.log tricks.

Elias Klemm

--

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…

--

--

Elias Klemm

Software Engineer @ SumUp, Software Architecture Enthusiast, and writing Newby.