Search posts, tags, users, and pages
Sanjay Vyas
It differs in node.
this.count = 0; will not go to global dictionary, rather into the object for which the top level anonymous function is called.
console.log(global.count); // undefined console.log(this); // { count: 0 }
Pranav Bakale
Yes, it differs in node. Thank you so much for sharing this.