JavaScript Console groupCollapsed()
JavaScript Console groupCollapsed()
The groupCollapsed() method is used for starting a collapsed message group. Due to this, all new messages will now be written inside this group and whenever we want to see those messages, we just have to click expand button to see them. Some similar methods are console.groupEnd() Method and console.group() Method.
Syntax:-
Its syntax is:- console.groupCollapsed(label)
Further Explanation:-
Parameter | Description |
label | Optional. A label for the group. |