Ayman Patelaymanace2049.hashnode.dev·Dec 14, 2024Speed up your site using Web workerJavascript is traditional a single-threaded application. It uses a concept of Non-Blocking IO using Event Loops. Event loops work with Queues, Queues, Web environment and Heap to orchestrate execution on the browser. But there are certain situations ...1 likeProgrammingEvent Loop
Panth Patelhow-is-my-backend.whiteloves.in·Dec 7, 202410 Javascript tools for clear code designHey there, developer! You might need some tools to boost your skills, and here are a few to check out: (https://jsr.io/@panth977/tools) Rate limit function invocation Sometimes you just want to make sure you don't go over the max number of calls to a...JavaScript
gayatri kumargeekee.hashnode.dev·Nov 15, 2024The Call Stack Chronicles: Understanding JavaScript Execution!Think of the call stack in JavaScript as a stack of storybooks. Each function in your code is like a new chapter of the story. When a function starts running, it's like opening a new chapter. But you can only read one chapter at a time. Once you fini...30 likesWeb Developmentjs
David Gostindgostin.hashnode.dev·Nov 7, 2024The Event Loop and Call Stack in JavascriptAbsolutely! Let’s go through some examples to understand how the event loop and call stack work together in JavaScript. Key Concepts Call Stack: Keeps track of functions in execution. It works in a Last In, First Out (LIFO) manner. Event Loop: Mana...Event Loop
Zech Zimmermanblog.zech.codes·Nov 4, 2024Understanding Async/Await in PythonAsync/await is a powerful tool in Python that can significantly enhance your programming skills. In this post, we'll delve into the high-level workings of async/await and then venture into its fundamental implementation. We'll also compare and contra...39 readsasync
Darshit Anjariadarshitanjaria.hashnode.dev·Oct 28, 2024How JavaScript Handles Concurrent Requests Despite Being Single-Threaded: The Magic Behind the ScenesIntroduction JavaScript is known as a single-threaded language, meaning it can only execute one task at a time. However, despite this limitation, JavaScript can handle multiple asynchronous operations efficiently, such as fetching data from an API or...JavaScript
Bhupendrabhuppi.hashnode.dev·Oct 23, 2024How asynchronous code is executed in JavaScriptIn JavaScript, asynchronous code is handled using the event loop, which allows non-blocking execution. JavaScript is single-threaded, meaning it can only perform one task at a time. However, it can handle asynchronous tasks efficiently without blocki...JavaScript
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’s dive deep into this. To execute JavaScript code inside the browser, a browser needs an engine, similar to how other programming la...2 likesJavaScript
Vishal Raivishalraisde.hashnode.dev·Oct 19, 2024How Javascript Event Loop workIn JavaScript, the execution context and the event loop determine how code, particularly asynchronous code, gets executed. The example provided involves asynchronous behavior (with setTimeout and Promise). Let's break it down step by step, explaining...Event Loop
Aniket Mahangareaniketmahangare.hashnode.dev·Oct 14, 2024Implementing Event Loops in Go: A Practical ApproachEver wondered how single threaded applications, like Redis, are able to handle thousands of clients concurrently (“perceived” concurrency)? The answer is “Event Loops“. In this article, we will dive deep into how event loops work & their implementati...132 readsEvent Loop