method Console.count
Jump to headingConsole.count(label?: string): void
Maintains an internal counter for a given label, incrementing it each time the method is called
Examples Jump to heading
Jump to heading
Example 1
Example 1
console.count('myCounter');
console.count('myCounter'); // Will show: myCounter: 2
Parameters Jump to heading
optional
Jump to headinglabel: string
The label to count. Defaults to 'default'
Return Type Jump to heading
void