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
Avez Qureshiavezqureshi14.hashnode.dev·Oct 13, 2024How Javascript WorksEverything in Javascript happens inside an “ Excecution Context “ So whatever is excecuted in javascript is inside the excecution context, you can imagine this excecution context as a container in which entire javascript code is excecuted , Whenever...DiscussJavaScript
Shubham Mehtashubham-mehta.hashnode.dev·Sep 23, 2024How JavaScript Manages Asynchronous OperationsYou might have heard that JavaScript is single-threaded, non-blocking and asynchronous in nature. First let’s understand what asynchronous means in JavaScript. What is asynchronous JavaScript? Asynchronous means performing multiple tasks at the same ...Discuss·46 readsasynchronous
Saurabh Tajanekatanasword.hashnode.dev·Sep 10, 2024Event loop and async javaScriptJavaScript is a single-threaded language As we know JavaScript is a single-threaded language, it has only one call stack to execute a code line-by-line, and there is no plan to become a multi-threaded language. JavaScript is a single-threaded languag...Discuss·185 readsJavaScript
Mohtasim Ahmedeftythoughts.hashnode.dev·Aug 25, 2024Asynchronous Javascript - Callbacks, Promises, Async-Await | (A detailed overview)First of all, we need to know about Asynchronous Javascript and Synchronous Javascript. Javascript is a single-threaded programming language. In simple words, JavaScript can do one thing at a time. And javascript runs codes step by step (one after an...Discusssynchronous
Devstories Playgrounddevstoriesplayground.hashnode.dev·Jul 31, 2024Key Ideas About the JavaScript Call Stack You Should UnderstandWhat is the Call Stack? The call stack is a data structure used by the JavaScript engine to keep track of function calls. It operates on the LIFO (Last In, First Out) principle, meaning the last function called is the first one to finish executing. H...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
Raj Kamblerajkamble21.hashnode.dev·Jul 20, 2024Mastering JavaScript: From Sync to Async and BeyondHow JS executes the code? JavaScript execution involves two main stages: creation and execution. These stages are managed within special environments called execution contexts. 1. Creation Phase (Setting Up the Stage) Global Execution Context (GEC):...Discusspromise
Bhavesh Jadhavbhaveshjadhav.hashnode.dev·Jul 1, 2024FeaturedAsynchronous JavaScript and Event Loops: Unleashing the Superpowers of BrowsersIntroduction to Browser Capabilities Browser is one of the most remarkable creations in the history of mankind. Browsers have the JS engine inside them and they also have the local storage to store some data. They have a timer as well which you can a...Maruf Hossen and 1 other are discussing this2 people are discussing thisDiscuss·52 likes·1.2K readsJavascript BasicsJavaScript