Displaying posts tagged: bug
2011-08-02 01:17:49
No Comments
I recently stumbled across this issue while debugging some Javascript. Take the following example code:
var array = [1,2,3,4,5,6,7,8,9,10];
var i = 0;
while(array.length > 0) {
console.log(i++, array);
//alert("pause");
array.pop();
}
If you run it in your browser you would expect to see the following printed (in your Javascript console):
0 [1, 2, 3, 4, ...
2010-05-23 14:04:52
1 Comment
