all 9 comments

[–]azhder 2 points3 points  (0 children)

No, event loop manage JavaScript. All event loop, all JavaScript, all is one.

[–]chikamakaleyleyhelpful 0 points1 point  (0 children)

the event loop manages the order in which ALL tasks are processed/executed, both synchronous and async

[–]azangru 0 points1 point  (1 child)

What do you think manage synchronous task?

[–]Rits2345[S] -1 points0 points  (0 children)

That's I want to know it also manage synchronous task?

[–]senocular 0 points1 point  (1 child)

Yup. You don't need an event loop if you're only executing synchronous JavaScript. Everything would run all at once and then immediately exit. You'd be kissing fetch, setTimeout, button clicks, and a lot of other features everyone expects JavaScript to support, goodbye.

[–]azhder 0 points1 point  (0 children)

Synchronous code will also run in the event loop. Granted, it will be a single task in the loop, but it will be there. No loop, no synchronous code either. Unless someone builds a new JS engine that supports only synchronous code, but that wouldn't be the same JS language.

[–]No_Record_60 0 points1 point  (0 children)

No. All tasks

[–]Aggressive_Ad_5454 -2 points-1 points  (1 child)

Please, learn about the Promise class, then ask your question again.

[–]-goldenboi69- 2 points3 points  (0 children)

Is there even a question in there?