Menu
order of execution ?
Hello ,
Pls , What is the order of execution in code below .
const wait = time => new Promise((resolve) => setTImeout(resolve, time)) ;
wait(3000).then(() => console.log(‘Hello!’)) ;
At what time does 3000 actually get plugged into the variable “time” ?
Thanks