The following technique will change the way we write JavaScript very soon.
If you're into JavaScript, you're gonna want to understand async/await.
Prerequisites
JavaScript Promises were introduced to solve many JavaScript problems such as
the callback hell. async/await builds on top of Promises to provide an easier
handling