#javascript: #promises and Why Async/Await Wins the Battle
▻https://hackernoon.com/javascript-promises-and-why-async-await-wins-the-battle-4fc9d15d509f?sou
Asynchronous functions are a good and bad thing in JavaScript. The good side is that asynchronous functions are non-blocking and, therefore, are fast — especially in a Node.js context. The downside is that dealing with asynchronous functions can be cumbersome, as you sometimes have to wait for one function to complete in order to get its “callback” before proceeding to the next execution.There are a handful of ways to play to the strengths of asynchronous function calls and properly handle their execution, but one is far superior to the rest (Spoiler: it’s Async/Await). In this quick read, you’ll learn about the ins and outs of Promises and the use of Async/Await, as well as our opinion on how the two compare.Enjoy!Promises vs. Callbacks ?As a JavaScript or Node.js developer, properly (...)