DEV Community

Cover image for JavaScript developer must know these Console methods.

JavaScript developer must know these Console methods.

Nikhil karkra on December 21, 2019

In web browser Console is a tool that help us to log information associated with a web page like: error, warning, network request etc. In javascrip...
Collapse
 
akashkava profile image
Akash Kava • • Edited

How about console.log("%cWarning message", "font: 2em sans-serif; color: yellow; background-color: red;"); You could use colors in log.

Collapse
 
nickytonline profile image
Nick Taylor •

Nice post. Definitely some great console methods to know!

The more you know

Logpoints are also pretty useful depending on your debugging style.

They've been available in VS Code since June of last year, but they also got introduced in Chrome 73, and added in FireFox 67.

Collapse
 
gypsydave5 profile image
David Wickes •

JavaScript Developer Must Know These Console Methods

🧐

developer.mozilla.org/en-US/docs/W...

and

console.spec.whatwg.org/

Are worth a read.

You missed out console.dir(), which is also quite a lot of fun.

Collapse
 
delta456 profile image
Swastik Baranwal •

This post is really informative! Thanks for making this post.

Collapse
 
uddeshjain profile image
Uddesh •

I have use fee of them but I wasn't aware of console.group. Thanks for sharing.

Collapse
 
the_power_coder profile image
John Dorlus •

Wow. I literally knew one of these. console.log() Today I learned.

Collapse
 
oathkeeper profile image
Divyesh Parmar •

I just started using table few days back but this group looks even more interesting I'll start using it now

Collapse
 
jmmedina00 profile image
Juan Miguel Medina Prieto •

Very interesting, indeed. I'll try to give some of these a try when doing some work on JS

Collapse
 
ksaroz profile image
Saroz Kumar •

Thank you..

Collapse
 
prafulla-codes profile image
Prafulla Raichurkar •

Thank you, this is so helpful 🙌🏻

Collapse
 
abbiranjan profile image
Alok Ranjan •

Very nice article about console.
Thanks a lot.

Collapse
 
kleene1 profile image
kleene1 •

Nice one :) will refer back for this 😄

Collapse
 
weylar profile image
Idris •

Nice

Collapse
 
slch profile image
SLCH •

Lies, react 17 isn't out yet.

Collapse
 
karkranikhil profile image
Nikhil karkra •

It's just a demo...😂

Collapse
 
ianmarkind profile image
Ian Markind •

Dope!