What is Require function & how to export custom module?

In Node.JS, Every JavaScript file is its own module and So far we have been loading module using the require function. What is Require function? The require function is the part of common JavaScript module. But it is only half part and the other half of the part is module.exports […]

What is React context good for & how to use?

Before diving in what is React context? Let’s first understand why do we need it with an example. Let’s consider a scenario where we have 6 components A,B,C,D,E & F. some are the child components please refer the below image for better understanding. Here A,B & C are first level […]

What and how to use Readline?

Readline is a core module of NodeJS that is available to us without having to install anything other than NodeJS. It can be used ask/read data of a terminal user. Suppose we are creating an application that would ask questions from a terminal user. It is an interface where we […]