Console.groupEnd

From FirebugWiki

Jump to: navigation, search

Closes the most recently opened log group created by a call to console.group() or console.groupCollapsed().

[edit] Syntax

console.groupEnd()

[edit] Examples

console.group("First level");
console.group("Second level");
console.log("Log message");
console.info("Info message");
console.groupEnd();
console.groupEnd();

This creates two groups called "First level" and "Second level" containing a log and an info message. By this the first console.groupEnd() will close the "Second level" group and the second console.groupEnd() the "First level" group.

[edit] See also

Personal tools