console.time() and console.timeEnd() can be used to show how much time a particular block of code takes to run. You can group a set of console logs having a particular meaning apart from the rest using this method. Using various format specifiers inside them, you can also log objects as such: console.group andconsole.groupEnd. Using console.collapsed() to have the logs closed by default.

4m read timeFrom dev.to
Post cover image
Table of contents
Using different console methodsUsing format specifiersConclusion
6 Comments

Sort: