Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,17 @@ Increases indentation of subsequent lines by spaces for `groupIndentation`
length.

If one or more `label`s are provided, those are printed first without the
additional indentation.
additional indentation. Use [`console.groupEnd()`][] to decrease indentation.

```js
console.group('abc');
// Prints: abc
console.log('inside group');
// Prints: inside group, with 2 leading spaces
console.groupEnd();
console.log('outside group');
// Prints: outside group
```

### `console.groupCollapsed()`

Expand Down Expand Up @@ -620,6 +630,7 @@ This method does not display anything unless used in the inspector. The

[`console.error()`]: #consoleerrordata-args
[`console.group()`]: #consolegrouplabel
[`console.groupEnd()`]: #consolegroupend
[`console.log()`]: #consolelogdata-args
[`console.profile()`]: #consoleprofilelabel
[`console.profileEnd()`]: #consoleprofileendlabel
Expand Down