console.countReset([label])
This
method resets the counter for this label.
HelloWorld.js
var welcome = "Good Morning" console.count(welcome); console.count(welcome); console.count(welcome); console.count(welcome); console.log("Resetting the counter"); console.countReset(welcome); console.count(welcome);
Output
Good Morning: 1 Good Morning: 2 Good Morning: 3 Good Morning: 4 Resetting the counter Good Morning: 1
No comments:
Post a Comment