function a() { var b = [\"b\"]; console.log(b); //console.log(b.slice()); b = b.push(\"bb\"); } a();
In a \"perfect\" world you would thin
I'm assuming this has to do with the way that console.log() works although you're doing something a little funky when you say:
console.log()
b = b.push("bb");
you should be able to just say
b.push("bb");