DEV Community

Discussion on: How JavaScript Works: Web APIs, Callback Queue, and Event Loop

Collapse
 
mahdi_sulduz profile image
final_code • Edited

I have a question . So the event loop and callback queue are provided in v8? Or the browser has provided it as a web api

Collapse
 
ricardopaul profile image
Ricardo Paul

Yes it is provided by the browser but not as a Web API. The event loop is also provided by Node server side. Both Node and the browser are Javascript runtimes based on V8.

Collapse
 
musasahinkundakci profile image
Musa Şahin Kundakcı

Node's event loop works differently.

Collapse
 
bipinrajbhar profile image
Bipin Rajbhar

Browser