Different kinds of console output that are useful in JavaScript
Hi I was reading about console.log but console has others methods that are really useful
Clear the console
yes there is a method that can clear the console, if you run this command into Chrome browser you can see something like this
console.clear()
Before command
After command
Count how many times is called
With console.count we can count how many times a variable string is called
console.count()
Check all the data of an object
display all the information of the object
console.dir()
print an error on the console
with console.error() you can print an error like this
console.error()
Create a table with the data
You can control the data output and create a table with them
console.table()
Check the time
With this method we can check the time of the response or check the time when people check something or click in some area
console.time(), console.timeLog(), console.timeEnd()
Print a Warning
with this method is easy to create a warning
Conclusion
There are another ones but these are the most useful console methods for me but in this case you can use table if you want to use more information or errors or warning, well those are great methods for console.log