Concepts

console.count() and countReset()

Try the free JavaScript compiler

Counts invocations associated with a label; countReset resets the corresponding counter. Output formatting is host-specific.

Formal Syntax & Structure

javascript syntaxjavascript
console.count(label); console.countReset(label)

Working Example

Example Snippetjavascript
(async () => {console.count("v17-visit");console.count("v17-visit");console.countReset("v17-visit");console.count("v17-visit");})()
JavaScript Reference