Quantcast
Channel: bramp.net » Javascript
Viewing all articles
Browse latest Browse all 9

Google Chrome Javascript console.log bug?

$
0
0
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, …

Read more »


Viewing all articles
Browse latest Browse all 9

Trending Articles