asyncInterpolated.mjs

node v16.10.0
version: 0.0.1
endpointsharetweet
const delay = (ms, result) => new Promise(r => setTimeout(r, ms, result)); const interpolated = `Hello, ${await delay(1000, "World!")} Is this sync or async?`; console.log(interpolated);
Loading…

no comments

    sign in to comment