If you can’t explain it simply, you don’t understand it well enough

Working with modules in NodeJs

So far, we have seen that Node provides us with some Global modules and some Pseudo Global modules, and we can use modules written by others by installing packages from npm store.
What this means is we can utilise module system in three ways:
1. Use Global Modules in our Project…

Script Processor Mode and REPL mode in Node.Js

As can be seen from the above image, we can execute a script using the script processor mode of Node.Js. We need to be in the directory where our script is present. Then executing the command node <script-name> will run our script and we will see the output in the…

Now that we have succesfully installed node on our system. We can check which version got installed by running the command node - - version.
With node, npm (node package manager) automatically got installed for us.
NPM is like a store where you can shop for open source libraries written by…

What is Node.Js?

It’s a runtime Environment for Javascript which lets you run Javascript code outside the browser environment.
But, when we already have options like asp.net, django, rails etc, why do we need NodeJs?

Let’s find out why…

Why Node.Js?

  1. Easy to learn
  2. Superfast and highly scalable
  3. Less code, Javascript everywhere (A frontend JavaScript…

Getting started

Before moving further, we need to have Linux OS installed on our machine.
If you are a windows user, you can either make your system dual-boot to Linux or use WSL to get a taste of Linux or use a live USB stick.

Another option for Windows user is to…

Devanshu Tiwari

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store