i want to know how in this obj when it declare and use 2 literal array they both reference each other
var o = {
push:[].push,
length:0,
toString:[].join,
valueOf:function(){
return arguments[0] == "number" ? this.length : this.toString();
}
};
o.push(1, 2, 3);
o.toString(); // "1,2,3"
(o*1).toString(); // 3
Nothing it is an fundamental i think
no need code
how 2 different literal array reference each other