DEV Community

Cover image for JS Eventloop and Nodejs event loop different or not?
KILLjoy
KILLjoy

Posted on • Updated on

JS Eventloop and Nodejs event loop different or not?

They are not the same. It's a similar concept. Both have their own eventloop. Node js event loop is somewhat advanced version customized for server environment.

Now you must be wondering how these two event loops work together?I was stuck for a long time and how these both work together. Then I asked someone.His youtube channel-https://www.youtube.com/@codingscenes/videos. He provides me some pics helped me lot!

Let's suppose you have clicked a button that will bring users result on UI
How does this go from front-end to back-end

FRONTED

Image description

BACKEND

Image description

FRONTED

Image description

Hope you have understood a little🙃.
Special Thanks ♥️-https://www.codingscenes.com/

Top comments (1)

Collapse
 
kunal_singh_12b958f46a0f3 profile image
kunal singh

Very helpful!