Difference between revisions of "Console.groupEnd"

From FirebugWiki
Jump to: navigation, search
(Separate Console API page for console.groupEnd())
 
m (Added categories)
 
Line 22: Line 22:
 
* [[console.groupCollapsed]]
 
* [[console.groupCollapsed]]
 
* [[Console API]]
 
* [[Console API]]
 +
 +
[[Category:Firebug]]
 +
[[Category:UI]]
 +
[[Category:API]]

Latest revision as of 17:12, 21 November 2013

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]