Console.groupEnd

From FirebugWiki
Revision as of 17:12, 21 November 2013 by Sebastianz (Talk | contribs) (Added categories)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Syntax[edit]

console.groupEnd()

Examples[edit]

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.

See also[edit]