Feb 4 · 14 min read · Imagine you've just created an algorithm, and it works lightning-fast on your brand-new computer. You're thrilled with the results and can't wait to share your success, so you ask your friend to give it a try. However, when your friend runs the same ...
Join discussion
Dec 5, 2025 · 9 min read · 🧭 Introduction Ever wondered how JavaScript seems to do many things at once—fetching data, responding to clicks, updating the DOM—yet it’s single-threaded?The secret lies in its asynchronous architecture powered by the event loop. In this post, we’l...
Join discussionNov 17, 2025 · 109 min read · In a recent interview, my friend was asked an interesting question — and I got it wrong too at first. The trick was that async has higher priority than setTimeout. I later realized why: async returns a Promise, and Promises are handled in the microta...
Join discussion
Oct 15, 2025 · 6 min read · 📌 Everything in JavaScript happens inside an Execution Context. What is Execution Context ? The execution context is conceptualized as a big box or a container in which whole JavaScript code is executed. It provides the foundational setting for al...
Join discussion
Oct 10, 2025 · 4 min read · 1.1 Synchronous Synchronous statements in JavaScript are statements that execute sequentially, meaning each statement must complete before the next one begins. They block the execution of subsequent code until the current task is finished. Examples i...
Join discussionAug 15, 2025 · 3 min read · 🔥 01. How JavaScript Works – Overview JavaScript is: Single-threaded → one task at a time Synchronous by default (but supports async with Web APIs) Interpreted/Just-in-time compiled (V8 engine etc.) JavaScript runs inside the JavaScript Engine ...
Join discussion