// an array of arrays
var people = [["John", "Smith"], ["Jane", "Doe"], ["Emily", "Jones"]]
console.table(people);
![Table displaying array of arrays](https://mdn.mozillademos.org/files/8561/console-table-array-of-array.png)
Console API Reference | Tools for Web Developers | Google Developers
console.table([
{
first: 'René',
last: 'Magritte',
},
{
first: 'Chaim',
last: 'Soutine',
birthday: '18930113',
},
{
first: 'Henri',
last: 'Matisse',
}
])
![The result of the console.table() example above.](https://developers.google.com/web/tools/chrome-devtools/console/images/table.png)
Console Overview | Tools for Web Developers | Google Developers
No comments:
Post a Comment