I was going through the videos from Crockford and found out Object() linkage topic.
I did not get the exact difference between Object() linkage and assignment though.
Can someone put some light to clear this up.
Below is the snippet code and result when executed in Chrome Browser
var myObj= {name:"Jack", age:25};
var myLinkObj= Object(myObj);
var myRef=myObj;
myLinkObj.name="John";
myRef.add="India";
alert(myObj.name); // output John
alert(myObj.add); //output "India"
So what is the extra feature that I get form Object(). I find it is similar to value reference.
Object()here,myObj === myLinkObj. What part of which video do you refer to?