This method displays an interactive list of all the properties of a specified object.
If you want to log all the properties of a HTML element you can use console.dir instead of console.log
This method displays tabular data as a table.
The method takes 1 mandatory argument data, which must be an array or an object.
Each element in the array becomes a row in the table.
If you have a lot of logs it can be difficult to keep track of all these logs.
The console.group() creates a new inline group in the Web console log causing any subsequent console messages to be indented by an additional level untill console.groupEnd() is called
This method starts a timer you can use to track how long an operation takes.
You can give each timer a unique name and you can have upto 10000 timers running on a given page.
When you call console.timeEnd() with the same name the browser will output the time in millisecons, that elapsed since the timer was started
This logs the number of times the particular call to count() has been called.
A string if supplied, count("") outputs the number of times it has been called with that label.
If it is omitted count() behaves as thought it was called with the "default" label.
This method writes and error message to the console if the assertion is false.
If assertion is true nothing happens
Eg) console.assert(assertion, message, obj1, obj2, ...)
This is used to output a message in console
This is used to clear the console if it is allowed by the environment
Outputs an error message to the console.
Thanks for reading ❤️