Untitled
unknown
javascript
2 years ago
316 B
8
Indexable
Predict the output of the below JavaScript code?
const promiseFunction = () => {
return new Promise((resolve, reject) => { setTimeout(() => console.log("second"), 1000); });
}
const dummyFunction = async () => { console.log("first");
await promiseFunction();
console.log("third");
}
dummyFunction();Editor is loading...