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