Understanding async/await in JavaScript
The
async
andawait
keywords have been in JavaScript for some time now, with full support across all major browsers and Node. While a lot has been written on how to use them, they are still a mystery to many fresh JavaScript and Node developers.This article aims to explain what
async
andawait
do and how they work, in simple terms, while not treating them as black magic.