how is the control flowing in below code? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

how is the control flowing in below code?

https://code.sololearn.com/WJpBXcYtBAzb/# how flag3 is printed after flag2. I didn't understand the control flow here.

4th Feb 2022, 2:11 PM
Sagar Singh
Sagar Singh - avatar
1 ответ
+ 2
The callback queue is where a Promise's result is stored. Once the call stack is empty, the callback queue places the next available call, if any. The console.log calls are running on the call stack.
5th Feb 2022, 7:19 PM
Sam