Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
asyncInterpolated.mjs
node v16.18.0
version:
0.0.1
endpoint
share
tweet
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