await on promise javascript code example
Example 1: js await
const a = async () => {
await b();
c();
};
Example 2: await javascript
If the value of the expression following the await operator is not a Promise, it's converted to a resolved Promise.