async | | Lava Lamp Lab
Jan 27, 2020
How I like to use async await in JS

How I like to use async await in JS

Using async and await is generally considered to be a replacement for handling promises with then() and catch() methods: methodThatReturnsAPromise().then(result => { handleResult(result) }).catch(err => { […]