List of questions
Related questions
Question 209 - Certified JavaScript Developer I discussion
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay = async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?
A.
4 2 1 5 3
Your answer:
0 comments
Sorted by
Leave a comment first