The table of console for JS tries to construct a table with the columns of the properties of tabularData (or use properties) and rows of tabularData and log it with a logLevel of "log" and falls back to just logging the argument if it can’t be parsed as tabular.
table(tabularData, properties) The data to include in the table.
The columns to include in the log.
<!doctype html>
<html>
<body>
<output>console (F12)</output>
<script>
const tabularData =
[
["mytabulardata00", "mytabulardata01", "mytabulardata02"],
["mytabulardata10", "mytabulardata11", "mytabulardata12"],
["mytabulardata20", "mytabulardata21", "mytabulardata22"],
];
console.table(tabularData);
</script>
</body>
</html>
<!doctype html>
<html>
<body>
<output>console (F12)</output>
<script>
const tabularData =
[
["mytabulardata00", "mytabulardata01", "mytabulardata02"],
["mytabulardata10", "mytabulardata11", "mytabulardata12"],
["mytabulardata20", "mytabulardata21", "mytabulardata22"],
];
const properties = ["0", "2"];
console.table(tabularData, properties);
</script>
</body>
</html>