DEV Community

Discussion on: Like `console.log` But Better

Collapse
 
metruzanca profile image
Samuele Zanca

You forgot the most important console method:

console.group("group name");
console.log("something");
console.groupEnd();

Which creates a collapsible tree for hiding and showing more or less information.

Also console.time and console.timeEnd to track how long something took.

Collapse
 
leirasanchez profile image
Leira Sánchez

I’m going to have to start using groups. They will definitely make my console cleaner! Thank you