So i was trying to do this:
var obj1 = {test:0};
var obj2 = obj1;
obj2.test= 2;
console.log(obj1,obj2);
and I expected to return
{test:0} {test:2}
but returned this
{test:2} {test:2}
Is this a bug or this is how object behaves?