Skip to content Skip to sidebar Skip to footer

Order Of Execution For Console Statements For Different Browsers

I've tested the following code in both Firefox (32) and Chrome (38) so far var startTime = (new Date()).getTime(); console.log(startTime); var data = []; var tCat = 'ABCDEFGHIJKLM

Solution 1:

TL;DR: Consoles are not governed by any standard and depend on the browser.

It works as expected. Try adding breakpoints and step through each line in the code, and you'll see that they execute as expected. A much more crude approach is paralyze your script with alert().

However, behavior is still vendor-dependent. No guarantees.

Post a Comment for "Order Of Execution For Console Statements For Different Browsers"