Skip to main content
method Console.count
private
Console.count(label?: string): void
Deprecated

Maintains an internal counter for a given label, incrementing it each time the method is called

Examples

Example 1

console.count('myCounter');
console.count('myCounter'); // Will show: myCounter: 2

Parameters

optional
label: string

The label to count. Defaults to 'default'

Return Type

void
Back to top