Create templates to quickly answer FAQs or store snippets for re-use.
console.table is indeed a great tool to display data. Just to add, I find that console.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.
This is so good! Thanks!
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
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!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.