Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
mac-aga20616yGood read, always remember kids , when you find something here that’s already known to you , there might be some junior Dev who will be happy that he found this and can use it.
P.S. I didn’t know this , not ashamed -
neofetch8066yAs a non-dev, I appreciate this kind of small tips.
I only knew console.log until this point and never even thought about other options.
Thank you for sharing. -
inaba45896yIn fact there are are lots of fun stuff you can do with the console object. Like error, info, warn, dir, time, and so on. There's also %c which allows you to style the outputs with css :3
-
m0j0nz0r3456yI haven't explored the console object as much as I should. Thanks for the extra bit.
-
console.group()is something I use way more often but other people never seem to know it.
Related Rants
Did you know that
console.table(arr);
will let you print whole JavaScript arrays in table form in console?
question
browsers
web
javascript