© 2023 Hashnode
#nodejs-developer
Don’t useJSON.parse and JSON.stringify What? but I have used it for many years and it is very important. Yes I have also used it for many years and it indeed served me well but the problem starts whe…
Node.js is the most popular JavaScript runtime environment for developing web applications, and mastering advanced Node.js techniques can give developers a major edge when it comes to improving perfor…
setImmediate runs in the next iteration of the event loop which means node js prioritize what can run immediately such as initialization, assignment, and registering asynchronous codes before calling the setImmediate function. Let’s take a …
What is Node.js? Node.js is a server-side platform built on Google Chrome's JavaScript Engine (V8 Engine), developed by Ryan Dahl in 2009. The definition of Node.js is − Node.js is a platform built on…
What is Node.js. Node.js is an open-source and cross-platform JavaScript runtime environment. It is a popular tool for almost any kind of project! Node.js runs the V8 JavaScript engine, the core of Go…
Creating a REST API in Node.js is a great way to build a scalable, high-performance web service. In this blog post, we will go over the steps of creating a simple REST API using Node.js and the Express.js framework. First, make sure you hav…
One of the strengths of Node.js is its ability to handle multiple tasks simultaneously, through a technique called concurrency. This allows your application to perform multiple tasks at the same time,…
There are several ways to create timers in Node.js, including using the setTimeout() and setInterval() functions from the timers module. setTimeout() is used to execute a function once after a specifi…
In Node.js, JavaScript code runs in a single thread. When a piece of code is executed, it blocks the execution of any other code until it finishes. The above means that if a long-running task, such a…
Why do we need event handlers in NodeJs ? An event handler is a callback function that gets executed in response to a specific event. In NodeJs events are triggered by different parts of the runtime s…