Judging by the # of "javascript inheritance" questions here I am going to assume my question was probably already answered elsewhere and I am just not understanding the other solutions...or javascript in general apparently.
My question is, why does the code below ( http://jsfiddle.net/Se9ZW/2/ ) print "test5" instead of "test1"?
var fake = { value:'test1'};
var fake2=fake;
fake2.value='test5';
document.getElementById('debug').innerHTML=fake.value;
These seems like something that is pretty obvious and so I am kinda embarassed to even be bringing it up but I guess ya gotta learn somehow.