Exploring Promise-Based Output Queries
Promises Output Questions
1. What is the output of this code?
console.log("A");
setTimeout(() => {
console.log("B");
}, 1000);
console.log("C");
setTimeout(() => {
console.log("D");
}, 0);
console.log("E");
Click to see the output
A
C
E
D
B...
atulbansalk.hashnode.dev4 min read