Please forgive if this is the wrong place to post this but I have tried running the example in the Console.count()
documentation (https://developer.mozilla.org/en-US/docs/Web/API/Console/count) and I get a different answer on node and jsbin than the docs say I should get.
Specifically:
var user = "";
function greet() {
console.count();
return "hi " + user;
}
user = "bob";
greet();
user = "alice";
greet();
greet();
console.count();
Running $ node -v && node main.js
gives:
v10.15.0
default: 1
default: 2
default: 3
default: 4
Where the last line prints 4
whereas the docs say it should print 1
.