console.count()
The console.count()
method logs the number of times that
this particular call to count()
has been called.
Syntax
count()
count(label)
Parameters
label
optional- : A string. If supplied,
count()
outputs the number of times it has been called with that label. If omitted,count()
behaves as though it was called with the "default" label.
- : A string. If supplied,
Return value
undefined
.