{"id":157,"date":"2020-06-06T13:20:50","date_gmt":"2020-06-06T13:20:50","guid":{"rendered":"https:\/\/danwritescode.com\/?p=157"},"modified":"2020-06-08T15:07:40","modified_gmt":"2020-06-08T15:07:40","slug":"what-happens-in-the-event-loop-when-we-run-asynchronous-javascript-code","status":"publish","type":"post","link":"https:\/\/danwritescode.com\/what-happens-in-the-event-loop-when-we-run-asynchronous-javascript-code\/","title":{"rendered":"What Happens In The Event Loop When We Run Asynchronous Javascript Code?"},"content":{"rendered":"\n

In the previous post we saw a simple example of asynchronous javascript code. Let’s dive deeper into the subject and see what happens in the event loop in the case of asynchronous code.<\/p>\n\n\n\n

Recap on the main difference between synchronous and asynchronous code:
When writing synchronous code: <\/strong><\/p>\n\n\n\n