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...Saanvi Kumar and 1 other are discussing this2 people are discussing thisDiscuss·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...DiscussEvent 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...Discuss·33 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...DiscussJavaScript
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...DiscussJavaScript
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...Discuss·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...DiscussEvent Loop
Aniket MahangareforAniket's Tech Journalaniketmahangare.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...Discuss·127 readsEvent Loop
Anish Agrawalanish29801.hashnode.dev·Oct 11, 2024Understanding the Event Loop in JavaScriptJavaScript is known for being a single-threaded, non-blocking, asynchronous programming language. But how does JavaScript manage to handle multiple tasks simultaneously, despite having only one call stack? The secret lies in the event loop. The event...DiscussJavaScript
Vishal Sharmacodreline.hashnode.dev·Oct 9, 2024Let's Dive into Internal Working of Node.jsHave you ever wondered how Node.js can handle thousands of connections at once without breaking a sweat? As a popular choice for building scalable network applications, Node.js has revolutionized the way developers approach server-side programming. A...Discuss·10 likesNode.js