Dec 26, 2025 · 1 min read · console.log("Start"); // setTimeout runs a function once after a specified delay (in milliseconds). // setTimeout(callback, delay, arg1, arg2, ...); // callback → function to execute // delay → time in milliseconds before execution // arg1, arg2... ...
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
Sep 9, 2025 · 3 min read · When most people hear asynchronous JavaScript, they immediately think of async/await or Promises. But JavaScript had ways to schedule asynchronous work long before Promises came along. The async keyword is just syntactic sugar around Promises, but th...
Join discussion
Sep 8, 2025 · 2 min read · I recently worked on an internal time tracking website using React, TypeScript and Next.js. One of the major features I implemented was a weekly email. This email would go out every Monday at start of business to any employees that had missing time f...
SSonu commented
Aug 20, 2025 · 11 min read · Welcome back to our comprehensive JavaScript series! In Part 1, we covered the fundamental building blocks of JavaScript. Now it's time to bring your JavaScript knowledge to life by learning how to interact with web pages, handle user events, and cre...
Join discussion
Jun 25, 2025 · 4 min read · Javascript is by default a synchronous and single threaded language, Yes you heard that right . Now you are must be thinking, One task at a time? Seriously? Yet we use it to build complex, responsive apps every day. How? It’s all thanks to the event ...
Join discussionApr 18, 2025 · 3 min read · Key Concept setTimeout() does not guarantee the execution of the callback exactly after the given time (e.g., 5000ms). It guarantees that the callback will be executed at least after the given time, but only when the call stack is empty. Let's Obs...
Join discussion
Mar 20, 2025 · 3 min read · In this article, we will review a function named deferExecution() in Refine source code. /** * Delays the execution of a callback function asynchronously. * This utility function is used to defer the execution of the provided * callback, allowing ...
Join discussionMar 15, 2025 · 8 min read · Call Stack: The Backbone of JavaScript Execution JavaScript operates as a single-threaded language, meaning it executes one operation at a time within a single call stack. This Call Stack is a fundamental data structure that tracks function execution...
Join discussion