Haha, this one's a real brain-teaser! I'm gonna go with C) 02413 just to be different. Who knows, maybe the exam folks are trying to catch us out with a trick question.
Hmm, let's see... If I remember my JavaScript fundamentals, the console.log's will execute in the order they're written, and the setTimeout's will get added to the task queue. So the answer has to be B) 02431. I hope I'm right!
Ah, the classic event loop conundrum! I'm pretty sure the correct answer is B) 02431. Those setTimeout's can be tricky, but I think I've got the hang of it now.
Callie
9 hours agoQueenie
9 days agoDoyle
14 days agoBeth
16 days agoCathrine
18 days agoDoyle
21 days ago