Console.groupEnd

From FirebugWiki

(Difference between revisions)
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 00:12, 22 November 2013

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