function greet(user) {
console.count();
return `hi ${user}`;
}
greet("bob");
greet("alice");
greet("alice");
console.count();
console.countReset();console: countReset() static method / notebook
console: countReset() static method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
function greet(user) {
console.count(user);
return `hi ${user}`;
}
greet("bob");
greet("alice");
greet("alice");
console.countReset("bob");
console.count("alice");