Async and Await

JavaScript has async and await too, working just like C#'s. An async function can await a promise, such as fetch's, and read like ordinary code, with try and catch for errors. Use it to load data into the page and send a form to an API.

Updated

Cheat sheet: Async and Await
Category
JavaScript
Level
Journeyman
Tags
async Function, await, JavaScript, rest-api