Gaurav Goswamigauravgoswami.hashnode.dev·Mar 31, 2024How JavaScript works??? 🤔💭When I started my journey with JavaScript I used to think about how things work under the hood, why the setTimeout code runs after the synchronous code, how is it even possible to call a function even before declaring it, and why do we get errors if ...Discuss·1 like·117 readsjsworking
Sahitya Aryanducklogic.hashnode.dev·Dec 21, 2023Demystifying JavaScript's Event Loop: Navigating the Event Loop and Callback Queues (Part 1)Welcome, techies! Now, let me ask you a question, and it is very important to answer this before continuing: Do you know what EventLoop or callBack queue is? Don't know the answer? No worries at all! Because we are going to get it, but the approach t...Discuss·31 readsEvent Loop
Sahitya Aryanducklogic.hashnode.dev·Dec 21, 2023Demystifying JavaScript's Event Loop: Microtask queue (Part 2)Welcome, techies! Today, we are going to explore the microtaskQueue. It is closely intertwined with the callBackQueue, and its existence is often overlooked on the Internet. However, it plays a magical role in the Event Loop. I'm willing to bet that ...DiscussEvent Loop
Ojas Elawadhiojaselawadhi.hashnode.dev·Nov 15, 2023The Magical Dance of JavaScript: How the Event Loop Keeps Things Lively!Hey there, fellow JavaScript explorer! Today, let's embark on an adventure into the enchanting world of the JavaScript event loop. Ever wondered how your code juggles multiple tasks without getting tangled up? Well, it's all thanks to the mesmerizing...DiscussJavaScript
Dipta Sahadipta.hashnode.dev·Jul 11, 2023JavaScript এ Event LoopExecution Context এর Concept থেকে আমরা জানি যে, যখন JS code run করা হয় তখন Global Execution Context তৈরি হয় এবং সেটি JS Engine এর মধ্যে Call Stack এ Push হয়। চলুন এই Concept এর মাধ্যমে Event Loop কি, কেন, কিভাবে কাজ করে সেটি বোঝা যাক। প্রথমেই বলে নেই...Discuss·2 likes·391 readsEvent Loop
forLập Trình Viênlaptrinhvien.hashnode.dev·Jun 26, 2023Event loop và callback queue trong JavaScriptJavaScript là ngôn ngữ lập trình đơn luồng (một câu lệnh (dòng code) được thực thi tại một thời điểm) và có mô hình thực thi đồng bộ (mỗi câu lệnh sẽ được thực thi theo thứ tự xuất hiện). Vậy phải thế nào khi ta cần đợi một khoảng thời gian trước khi...Discusscallbackqueue
forLập Trình Viênlaptrinhvien.hashnode.dev·Jun 26, 2023Promise & microtask queue trong JavaScriptPromise Promise là một special object được tích hợp trong JavaScript. Promise đóng vai trò là một placeholder cho dữ liệu chúng ta mong muốn nhận lại được từ hoạt động nền của web browser feature. Trong JavaScript, Promise được dùng để xử lý những vấ...Discusspromises
Dileepa Chandimablog.dilipchandima.com·Jun 17, 2023JS Event LOOP, How this code worksHey there! Today, let's dive into the fascinating world of the JavaScript event loop. It's a crucial concept to grasp if you want to build smooth and responsive web applications. So, let's get started! What is the Event Loop? The event loop is a mech...Discuss·52 readsJavaScript
Mahima Guptamahimacoding.hashnode.dev·Mar 17, 2023JavaScript Call stack and Event loopIn this article, we will try to understand how javascript executes asynchronous code and the different concepts associated with it. Async javascript Javascript is a single-threaded language at runtime which means only one thing can happen at a time. ...Akash Kumar Singh and 3 others are discussing this4 people are discussing thisDiscuss·9 likes·281 readsasynchronous JavaScript
Yash Purkaryashpurkar.hashnode.dev·Mar 12, 2023How JavaScript code works: Execution context, callStack, async Js, event loop, web API's callback Queue1.Execution Context What is an Execution Context?Everything in JS happens inside an Execution Context.Execution context is like a big box, it has 2 components.1. Memory Component 2. Code ComponentIn the memory component, all variables and functions a...Said Mounaim and 1 other are discussing this2 people are discussing thisDiscuss·22 likes·717 readsEvent Loop