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 »

Description

The groupEnd() ends a message group.


Syntax

console.groupEnd()

Browser Support

console.groupEnd() is supported in all modern browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes 11


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.