RIMANSHU SINGHforme.hashnode.dev路Oct 19, 2024Exploring Event Loops: Key Concepts ExplainedBefore understanding the event loop, you need to know how a browser works and how JavaScript code runs inside it. Let鈥檚 dive deep into this. To execute JavaScript code inside the browser, a browser needs an engine, similar to how other programming la...Discuss路2 likesJavaScript
Dwiki Arlancerita.hashnode.dev路Oct 4, 2024Task Queue vs Microtask Queue: Memahami Urutan Eksekusi JavascriptPernah merasa bingung mengapa setTimeout tidak langsung dieksekusi meskipun sudah dipanggil dengan timeout=0? Atau mungkin kamu sering menggunakan Promise tetapi belum sepenuhnya memahami bagaimana JavaScript menangani operasi seperti ini? Di JavaScr...DiscussJavaScript
Pradeep Thapapradeepwrites.hashnode.dev路Sep 28, 2024Understanding the Event Loop: The Hidden Mechanism Behind JavaScript's MagicJavaScript is often described as a single-threaded language, but it manages to handle tasks like fetching data from servers, updating the UI, and responding to user events seamlessly without blocking or freezing. This is made possible by a magical co...DiscussJavaScript
Abhijeet Karmakarabhijeet15.hashnode.dev路Jul 22, 2024Asynchronous JavaScriptAsynchronous JavaScript JavaScript Code Execution JavaScript engines consist of two main components: the heap and the function call stack. Additionally, there is a callback queue, a microtask queue, web APIs/Node APIs, and the event loop. When JavaSc...Discussasynchronous
Gaurav Yadavgauravblogss.hashnode.dev路May 23, 2024The JavaScript Paradox: Synchronously Asynchronous"JavaScript is a synchronous, single-threaded language" - a line we have heard numerous times. Let's dive deep into it and understand the duality of JavaScript where it inherently is a synchronous language but can perform operations asynchronously as...Discuss路10 likesJavaScript
Gaurav Goswamigauravgoswami.hashnode.dev路Mar 31, 2024How JavaScript works??? 馃馃挱When I started my journey with JavaScript I used to think about how things work under the hood, why the setTimeout code runs after the synchronous code, how is it even possible to call a function even before declaring it, and why do we get errors if ...Discuss路1 like路157 readsjsworking
Sahitya Aryanducklogic.hashnode.dev路Dec 21, 2023Demystifying JavaScript's Event Loop: Microtask queue (Part 2)Welcome, techies! Today, we are going to explore the microtaskQueue. It is closely intertwined with the callBackQueue, and its existence is often overlooked on the Internet. However, it plays a magical role in the Event Loop. I'm willing to bet that ...DiscussEvent Loop
Kenneth J Jonathanspearmint.hashnode.dev路Dec 15, 2023JavaScript: Micro vs Macro Tasks Exercises and Sources to Learn 馃拞Sources to Learn In this article, I'm gonna provide some exercises that could help refresh your memory on the Micro vs Macro Tasks topic. If you are not very familiar with the topic, here are a few sources that I think are great for learning this top...Discuss路10 likes路56 reads#microtaskqueue