DEV Community

Discussion on: How To Debug JavaScript Like A Pro.

Collapse
 
thomasjunkos profile image
Thomas Junkツ • Edited

Thank you! Nice tip.

But there is a trick called Computed Property Names

I assume you meant property shorthands

And if you really want to rock the party, do it in a table ;)

const foo = { name: 'tom',   age: 30, nervous: false };
const bar = { name: 'dick',  age: 40, nervous: false };
const baz = { name: 'harry', age: 50, nervous: true };

console.table({foo,bar, baz})

Here the fiddle

Collapse
 
buginit profile image
buginit • Edited

You can say that too;

the table example I covered here in all examples with results and more

and thank you for your comment really appreciated!!! :)