var a, async = function(f) { setTimeout(function() { var r = 'step 2'; f(r); }, 1); }, myFunc = function() { a = 'step 1'; async(function(r) { a = r; // should reset ...
A lightning-fast crash course on JavaScript, the world’s most popular programming language. From its 1995 origins as Mocha in Netscape to powering front-end apps, Node.js servers, mobile apps, and ...