I'm using Firefox's Web Console (FF v22). Using console.info(), future changes to an array are reflected. Is this a bug with the Web Console? Or does JavaScript on FF behave like this?
For example:
var myArr = [1];
console.info(myArr) // on Firefox [1,2] - NOT EXPECTED
myArr.push(2);
console.info(myArr) // on Firefox [1,2] - EXPECTED
IE on the other hand does behave as expected.
var myArr = [1];
console.info(myArr) // on IE: 1
myArr.push(2);
console.info(myArr) // on IE: 1,2