From FirebugWiki

Revision as of 00:13, 22 November 2013 by Sebastianz (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Writes the number of times that the line of code was executed where count was called.

There can be several counters for a page, which are distinguished by the line of code it is placed and the name it is given.


[edit] Syntax


[edit] Parameters

[edit] name

Name for the counter. This name will be displayed besides the count. If no name is given, different counters will just be distinguished by the line of code where console.count() is called.

[edit] Examples


This prints something like Exception 4 to the console, where 4 is the number of times the line of code was executed.

[edit] See also

Personal tools