© 2023 Hashnode
#event-loop
Knowledge Test: Let us examine the output generated by the following code snippet. function callback(i) { console.log(i) } for (var i = 0; i < 3; i++) { setTimeout(() => callback(i), 1000) } …
JavaScript is a programming language that executes codes synchronously, and that's why it is called a single-threaded non-blocking programming language which means that it will be able to do only one …
What is Javascript? Let's clear this up first. Javascript is a programming language used to develop web apps. It is also used to develop cross-platform desktop and mobile applications (through frameworks). JS is Single-Threaded, non-blockin…
Javascript is a synchronous single-threaded language. JS executes all operations on a single thread. It executes one thing at a time. The Event loop gives us the illusion of asynchronous programming i…
Having knowledge of async and await is definitely the biggest advantage a programmer can have. What exactly is an async, await in JavaScript? JavaScript uses something called Event Loop which takes ev…
The event loop is a crucial part of how Node.js works. It is what allows Node.js to perform non-blocking I/O operations, even though JavaScript is a single-threaded language. Working: Node.js has a s…
Introduction Explanation of what onClickCapture is and how it differs from the onClick property A brief overview of event propagation in the DOM Background A quick refresher on event phases of Jav…
The event loop is the pushing of events from the event queue or callback queue to the javascript call stack. It is this concept which makes javascript behave like a multi-threaded programming language…
It's been a long time without posting anything here, but I'm back.Let's talk about Javascript's Event Loop. As you may know, JS is a Single-Threaded language, so it can only execute 1 task simultaneou…
Introduction Welcome to the 16th lecture of our 50-day blogging series on back-end development mastery! In this lecture, we will be discussing the Node.js ecosystem and event loop. Understanding these…