We will see simplest async await example in JavaScript. We will see and example using the async and then block of Promise. The word “async” before a function means one simple thing: a function always returns a promise, we will see what do we get when we resolve a method in Promise.

We will see simplest async await example in JavaScript. We will see and example using the async and then block of Promise. The word “async” before a function means one simple thing: a function always returns a promise, we will see what do we get when we resolve a method in Promise.