Javascript Console Helpers

The javascript console functions are very useful to display data in the console. Every javascript developer need to know them. They allow you to debug Javascript code and solve problems with your code.

Time() & TimeEnd()

Starts and stops a time. That helps you to know how much time a function take to execute.


Outputs an error message to the console.


Outputs a warning message to the console.


Clears the console.


Displays tabular data as a table.


Logs the number of times that count(label) was called based on the value of label. label is optional.

Example with label:

Example without label :


This is very useful if you want to display objects in the console. It outputs a hierarchical listing with disclosure triangles that let you see the contents of child objects.