The other day I found a nice thread 🧵 (opens new window) explaining different
console methods, that can be used instead of
console.log(). Let us take a closer look! 🤓
This method will display an interactive view of the object you want to log.
This method will display a table view of the object you want to log.
Had some issues with this method in chrome where it would not display the last item in the table 🤷
These methods allow you to group your console output together.
These methods allow you to start and stop a timer and log the duration of the commands executed in between.
This method let's you count how often you have called a specific
This method writes an error message to the console if the assertion is false. If it is true, nothing is logged.
Now you have a couple of alternatives to
console.log() in your tool belt. Have fun with it!