Games Node.js Loop Quest The express lane
async always returns a promise
An async function that just returns 42. What does the caller get back?
async function getNum() { return 42;}const p = getNum();console.log(p instanceof Promise);p.then((n) => console.log(n));1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…