Node.js uses the CommonJS module system to organize code. This means when you want to use code from other files, you use methods like ‘require’. Additionally, Node.js also supports ‘ES6 import and export’ for this purpose. Let us understand in detail....
In this article, we will see how Node JS and React JS are an important part of developing full-stack web applications, where React is used for the front end and Node for the back end....
The fs.mkdir() method in Node.js is used to create a directory asynchronously....
In this article, we will create a basic Student app from scratch using the MERN stack which will implement all the CRUD(Create, Read, Update and Delete) Operations....
`fs.unlink()` in Node.js removes files or symbolic links, while for directories, it’s advisable to use `fs.rmdir()` since it doesn’t support directory removal....
`util.promisify()` in Node.js converts callback-based methods to promise-based, aiding in managing asynchronous code more cleanly. This alleviates callback nesting issues, enhancing code readability, and simplifying asynchronous operations through promise chaining....
The `response.writeHead()` property, introduced in Node.js v1.0, is part of the ‘http‘ module. It is used to send a response header to the incoming request. The status code represents a 3-digit HTTP status code (e.g., 404), and the headers parameter contains the response headers. Optionally, a human-readable statusMessage can be provided as the second argument....
Pretty much sure that whenever you browse a website, the first thing that makes you decide whether you’re going further with the particular website or not is the look and feel of it. Undoubtedly, no one prefers a website or application to have an inferior user interface or design....
NodeJS, released by Ryan Dahl in 2009, unexpectedly gained immense popularity within a decade. It has become a top choice for small to large enterprises in building backend services. Today, NodeJS is considered an essential skill for developers due to its widespread use and popularity....
In this article, we will see how to create JWT tokens in Node.js. We will implement secure authentication in Node.js by creating and verifying JSON Web Tokens (JWTs) using libraries like `jsonwebtoken`....
In the world of REST API, making HTTP requests is the core functionality of modern technology. Many developers learn it when they land in a new environment. Various open-source libraries including NodeJS built-in HTTP and HTTPS modules can be used to make network requests from NodeJS....
To sort an Object Array by Date in JavaScript, we have different approaches. We are going to learn how to sort an Object Array by Date in JavaScript....