What is logged to the console?
Given code below:
setTimeout (() => (
console.log (1);
). 0);
console.log (2);
New Promise ((resolve, reject)) = > (
setTimeout(() => (
reject (console.log (3));
). 1000);
)).catch (() => (
console.log (4);
));
console.log (5);
What is logged to the console?
A . 21435
B . 25134
C . 12435
D . 12534
Answer: B
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments