HTML DOM console.groupEnd() method

Definition and Usage

The console.groupEnd() method indicates the end of the message group.

Tip:Please use console.group() method Start the message group.

Tip:Please use console.groupCollapsed() method Start a collapsed message group.

Example

End the message group with 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

Syntax

console.groupEnd();

Browser Support

The numbers in the table indicate the first browser version that fully supports this method.

Method Chrome IE Firefox Safari Opera
console.groupend() Support 11.0 4.0 4.0 Support