JavaScript Console group()
JavaScript Console group()
The group() method is used for starting a message group. Due to this, all new messages will be written inside this group. Some of the similar methods are console.groupEnd() Method and console.groupCollapsed() Method.
Syntax:-
Its syntax is:- console.group(label)
Further Explanation:-
Parameter | Description |
label | Optional. A label for the group |