- Open Console using
Cmd+Opt+K
or Ctrl+Shift+K
> Use console.table()
to output the object in tabulated format.
Example:
console.table([
{population:8173194, country:"UK", elevation:"24m"},
{population:8336697, country:"USA", elevation:"10m"}
],["population", "country"])