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.
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!