© 2022 Hashnode
#event-loop
Introduction Node.js is a runtime environment built on the google chrome V8 engine. It provides an event-driven, non-blocking, and I/O cross-platform to build scalable server-side applications using J…
Hello Devs, here i am writing my first article on Node, sharing my knowledge uptill now. According to docs Node is "Node.js is a platform built on Chrome's JavaScript runtime for easily building fast…
Event Loop is a confusing enough topic to beginners and is often misunderstood. Here I am going to explain some terms so that you can better understand how things work and what the Event loop is. Int…
Have you ever wondered how javascript executes your code? Understanding how javascript operates behind the scenes is critical for optimizing your program. Javascript is a single-threaded programming language that has the appearance of mult…
Before talking about event loops in Javascript, let's see what's inside any browser. So when we think as a beginner we know that any browser like Google, Firefox, Opera, and Safari they have a Javascr…
JavaScript is a single-threaded programming language, this means we can do only one thing at a time. Still, we can make scripts run asynchronously. It is possible because of the runtime model based on…
To understand Node.js architecture, we first need to understand the Reactor Pattern which is the heart of Node.js Reactor Pattern The main idea behind it is to have a handler (which in Node.js is rep…
What happens when you run a javaScript program? JavaScript is a single threaded programming language ( it has a single run time or a call stack) which means that it can run only one piece of code at a…
If you have written js code for sometime then you have definitely come across something called "setTimeout()". It's quite a simple function, takes in a callback function as it's first argument and a d…
JavaScript As most developers might come across the statement that "JavaScript is a single-threaded programming language, that can do only one thing at a single point in time." It means, If a functio…