I am trying to experiment with node.js object life cycle and got a quick question. What do you think looking at the following code if b() will create 100 objects without destroying them?
function a() {
this.init = function() {
console.log('this is me!');
};
}
function b() {
(new a()).init();
}
for (var i = 0; i < 100; i++) {
b();
}