console.table()
console.table() is a JavaScript method in the Console category. Displays tabular data as a table. The syntax is console.table(data, columns). A typical example: console.table([{name:"Alice", age:30}]). Another practical use — Display array data: const data = [ { name: 'Alice', age: 25 }, { name: 'Bob', age: 30 } ] console.table(data) A close sibling is console.log(), which outputs a message to the console. A close sibling is console.error(), which outputs an error message. A close sibling is console.warn(), which outputs a warning message. A close sibling is console.info(), which outputs an informational message. More about this category: Console methods for debugging — log, error, table, time, and more. Related Console methods: console.log(), console.error(), console.warn(), console.info(), console.debug(), console.group(), console.groupCollapsed(), console.groupEnd(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls.