Flow Control in Modern JS: Callbacks to Promises to Async/Await

added by JavaScript Kicks
6/4/2018 7:24:58 AM

505 Views

JavaScript is regularly claimed to be asynchronous. What does that mean? How does it affect development? How has the approach changed in recent years? Consider the following code: result1 = doSomething1(); result2 = doSomething2(result1); Most languages process each line synchronously. The first line runs and returns a result.


0 comments