Dad. Husband. Web Developer. Music Enthusiast. Craft Beer Aficionado.
await is the operator used to wait for a promise to be fulfilled.
async is the keyword that specifies that a function is asynchronous.
The use of the await operator is not restricted to promises. await will convert any non-promise value into a promise value. It does it by wrapping the value into Promise.resolve.