Like all javascript programmers I will frequently throw a console.log into my code. I find it so much faster to log to the console than to deal wit...
For further actions, you may consider blocking this person and/or reporting abuse
console.table
is indeed a great tool to display data. Just to add, I find thatconsole.dir
is an underrated and often misunderstood method of the Console API. It's quite useful when you not only want to see the value of, let's say, a string but also its properties and methods.Also, for those interested, these posts give great tips on how to better debug your code.
5 helpful features in Chrome's DevTools
Sergiu Mureşan
9 Tips and Tricks for Chrome Dev Tools
Laura Weatherhead
This is so good! Thanks!
@umaar is a whiz when it comes to DevTools. You should give him a follow. He also has a great newsletter for DevTools tips, umaar.com/dev-tips.
You should ask @umaar if he'd be up for an AMA. He's a dev tools guru. I signed up for his moderndevtools.com last year and it's🔥💯
Thank you Nick!
Nice article! I am trying to include also an array inside the object but when it logs it gets appended and breaks the beauty of the table.
Without the array
With the array
its great! Is there anyway to copy it from the devtools console/ terminal as a table that can be pasted into excel for instance?