Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Top-level Async/Await

node v17.9.1
version: 1.0.0
endpointsharetweet
const one = () => { return new Promise((resolve) => { setTimeout(() => resolve(2), 2000); }) }; console.log(await one());
Loading…

no comments

    sign in to comment