Console.groupEnd

From FirebugWiki

Revision as of 00:12, 22 November 2013 by Sebastianz (Talk | contribs)
(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().

[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