THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML DOM console.groupEnd() Method

❮ Console Object

Example

End a message group by using the console.groupEnd() method:

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 console.groupEnd() method indicates the end of a message group.

Tip: Use the console.group() method to start a message group.

Tip: Use the console.groupCollapsed() method to start a collapsed message group.


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

Syntax

console.groupEnd()

❮ Console Object