2 ms·
> Microtasks get executed BEFORE macrotasks Correct. > they still get executed AFTER the current call stack is completed. Correct. > I'm pretty sure in JS i
by raincole 11mo ago
> Microtasks get executed BEFORE macrotasks
Correct.
> they still get executed AFTER the current call stack is completed.
Correct.
> I'm pretty sure in JS it would be [...]
Your understanding of JS event loop is correct but you reached the wrong conclusion.