Javascript Tutorial: How to Display Data as Table in the Console

Опубликовано: 19 Октябрь 2024
на канале: SouthBridge
1,608
8

In this video you will learn how to display data as a table in the console in javascript.

The console.table() method displays tabular data as a table.

This function takes one mandatory argument data, which must be an array or an object, and one additional optional parameter columns.

It logs data as a table. Each element in the array (or enumerable property if data is an object) will be a row in the table.