| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/console/groupcollapsed_static | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since July 2015.
Note: This feature is available in Web Workers.
The console.groupCollapsed() static method creates a new inline group in the console. Unlike console.group(), however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group.
Call console.groupEnd() to back out to the parent group.
See Using groups in the console in the console documentation for details and examples.
console.groupCollapsed()
console.groupCollapsed(label)
label OptionalLabel for the group.
None (undefined).
| Specification |
|---|
| Console # groupcollapsed |
console.group()console.groupEnd()console.groupCollapsed()console.groupCollapsed()console.groupCollapsed()This page was last modified on Jul 4, 2025 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |