Moving beyond console.log() — 8 console methods you should use when debugging JS and Node ↦
When talking about the Console API, newbies usually use only some functions like 👌
console.log()
, ⚠️console.warn()
, or ❌console.error()
to debug their application, while often there are many other methods which can perfectly implement our requirements and improve debugging efficiency.
Guilty! ✋
This article is made to expose some of the most interesting console methods with related examples that I use while teaching at Codeworks. So let’s see a list of the 8 best functions from the Console module!
I have used console.table
a few times (totally rad), but there’s plenty of functions here that I haven’t been using (and definitely should be).
Discussion
Sign in or Join to comment or subscribe