var obj={name: "faizan", age:31} var obj2= obj;//obj2 pointing to the same memoray location of obj console.log("before making null obj",obj2.name); obj={}; //obj became null console.log("after making null obj",obj2.name);//now this will need to be null but is working why??
obj
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)