HTML DOM console.groupEnd()Method
Example
Use the console.groupEnd() method to end a group message:
console.log("Example");
console.group();
console.log("I'm in the group message.");
console.groupEnd();
console.log("I'm out of the group now.");
Try it yourself »
Definition and Usage
The console.groupEnd() method is used to end a group label.
Tip:Use console.group()the method to set the starting position of the group message.
Tip:Useconsole. groupCollapsed()the method to set collapsed group messages.
Syntax
console.groupEnd()
Browser Support
The numbers in the table specify the first browser version that fully supports the method.
| Method | |||||
|---|---|---|---|---|---|
| console.groupend() | Yes | 11.0 | 4.0 | 4.0 | Yes |
Console Object