Hi Nadia,

What I had written was, JS is single threaded, but it doesn’t act like one. When we call async functions and use callbacks it doesn’t behave like a single threaded application and this is achieved with the help of Event Loop. In short the Event loop is part of this single thread.

Try going through the Concurrency Model in JS, it will help you better understand the event loop

--

--

JS Enthusiast, with a passion for travelling and writing.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store