it doesn't matter in the long run if you started with Node, Python, or Java. What matters is the principles and the rules that need to be taken care of. The technology aims to solve real-life problems and every technology has its advantages and disadvantages based on the business problem that is solving. 🏡
Let's discuss how we can use Node on the terminal.
C:\Users\user_name>node Welcome to Node.js v14.6.0. Type ".help" for more information. > 2+3 5 > "hello "+ "world" 'hello world' >
According to stackshare.io, NPM is the number 1️⃣ reason why developers like node.js. NPM stands for Node Package Manager, which contains libraries created by other developers on Node and can be used by us. A framework for backend is available Express is an example of how it can be helpful. Like express, mongoose, faker there are more than 350k freely available packages and we can use that for building cool stuff. 😍😍😍
The use of these packages is to eliminate the pains of a developer by using code that has been written by someone else on Node. The command npm install is used to install any package. After installing a package we can include that in our application by using require()
//Add a package to the existing project C:\Users\user_name\DemoProject>npm install express //Using express into our code var express = require("express"); //including express to our app var app = express(); //assigning it to a variable as express contains lot of functions.