Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM console.groupEnd() method

HTML DOM console.groupEnd() method

Console Object Console object

Example

Use the console.groupEnd() method to end a group of information:

console

.

log

(

"

Runoob

"

)

;

console

.

group

(

)

;

console

.

log

(

"

I am inside the group information.

"

)

;

console

.

groupEnd

(

)

;

console

.

log

(

"

I jumped out of the group.

"

)

;

Try it »


Definition and Usage

The console.groupEnd() method is used to end the group label.

Tip: Use console.group() The method is used to set the starting position of the group information.

Tip: Use console. groupCollapsed() method to set the collapsed group of information.


Syntax



console.groupEnd()


Browser support

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

Method
console.groupend() Yes 11.0 4.0 4.0 Yes

Console Object Console object