JavaScript by Example: Async / Await

Async / await makes promises easier to write.

The "await" keyword acts as the "then" keyword as results in the result of promise being stored in the variable.

let value = await promise;