console.table() Table output
Last updated: 2026-09-09
console.table() Table output
console.table displays array or object data as a table.
| Category | Browser (BOM) |
|---|---|
| ES version | DOM |
📝 Syntax
console.table(data);
⚙️ Parameters
| data | The array or object to display. |
|---|
Returns:undefined.
Mutates the original:No (returns a new value)
▶ Example
Edit the code, press Run, and see the result in the output panel:
Output:
(users shown as table)
💡 Tip console.table is the best way to debug arrays of objects.
ℹ️ info Second arg filters columns: console.table(data, ['name']).
🌐 Browser support
| Browser | |||||
|---|---|---|---|---|---|
| console.table() | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported by all modern browsers | |||||
🏷️ Related Items
💡 Related Cases
More case studies coming soon — check back later.
📚 Related Tutorials
❓ FAQ
Qo
As
Qo
As