group method

Begins a collapsible group of console output. Initially displays expanded.

Groups can be nested.

Use groupEnd to stop adding output to the group.

 

Syntax

console.group(groupTitle);

Parameters

  • groupTitle [in, optional]
    Type: DOMString

Return value

This method does not return a value.

See also

console

Using the F12 Tools Console to View Errors and Status