When you’re monitoring a lot of values and events in a program the output in the console can become difficult to read.
console.group in Chrome let’s you group and collapse a set of console messages.
To make sure your messages are collapsed before you start interacting with them use
You can’t append new messages to an existing group of logs.
Firefox doesn’t support collapsing groups, but it still shows the messages as nested and grouped together: