JSFiddle - React, Tailwind, and code Playground
by jbrosi
JavaScript
MyWatchedObjectClass = function () {
this.myData = "Hello";
};
MyUnwatchedObjectClass = function () {
this.myData = "Hello";
};
var obj = new MyWatchedObjectClass();
console.log(obj);
obj = null;
var obj2 = new MyUnwatchedObjectClass();
obj2 = null;
//MyWatchedObjectClass instance still visible, MyUnwatchedObjectClass instance not!
console.log("object is killed, now do your profiling!");