JavaScript Console table()
JavaScript Console table()
The table() method is used for writing the table to the console. The new table can be easily sorted by clicking column names.
Syntax:-
Its syntax is:- console.table(tabledata, tablecolumns)
Further Explanation:-
Parameter | Description |
tabledata | Required. The data to be filled in the table. |
tablecolumns | Optional. An array consisting of the name of the table columns. |