🚀The Event Loop — Mastering Async Behavior in JS
🤯 Why JavaScript Feels Asynchronous
JavaScript is single-threaded — it runs one task at a time.But when Hasnide uses things like:
setTimeout()
fetch()
Promises
async/await
…it feels asynchronous. That magic is made possible by the event loop.
...
mastering-async-behaviour.hashnode.dev1 min read