Console groupEnd()
Example
End a message group with console.groupEnd():
console.log("Hello world!");
console.group();
console.log("Hello again,
this time inside a group!");
console.groupEnd();
console.log("and we
are back.");
Try it Yourself »
Definition and Usage
The groupEnd()
ends a message group.
Syntax
console.groupEnd()
Browser Support
console.groupEnd()
is supported in all modern browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 11 | Yes | Yes | Yes | Yes |