Would you like to clone this notebook?

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

Cancel

JavaScript Async/Await

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

no comments

    sign in to comment