Return to site

JAVASCRIPT TIP: console.table 👉 log an objects list in a table way

· fullstack

You're probably familiar with console.log() in JavaScript.

But did you know about console.table()?

It's a super easy way to get a quick overview of an array of objects 🔥


broken image


broken image

See example 👇


const simpsons = [

  { name: 'Homer', age: 36 },

  { name: 'Marge', age: 34 },

  { name: 'Bart', age: 10 },

  { name: 'Lisa', age: 8 },

  { name: 'Maggie', age: 1 }




PS C:\_dev\VVJS\TEST> node vv/consoleTable.js  











All Posts

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!