In this article, we are learn Node JS and NPM in JavaScript.
Node.js :
- Node.js is a runtime system for creating server side applications.
Watch our step by step Nodejs video for beginners.
- Node.js is a open-source, cross-platform, JavaScript runtime built on Chrome's V8 JavaScript engine.
- Node.js runs on various platforms (windows, Linux, Unix, Mac OS X, etc).
- Node.js is developed by Ryan Dahl in the year 2009
- Node.js uses JavaScript on the server.
- It is initially released at may 27, 2009 and author is Ryan Dahl.
- The node.js is best known for JavaScript coder's to build real-time web API's.
- Node is a desktop application or runtime environment that runs JavaScript files but some authors call it as JavaScript framework.
What node.js can do?
- Node.js can generate dynamic page content.
- Node.js can create, open, read, write, delete and close files on the server.
- Node.js can collect form data.
- Node.js can add, delete, modify data in your database.
What is a Node.js File?
- Node.js files contain tasks that will be executed on certain events.
- A typical event is someone trying to access a port on the server.
- Node.js files must be initiated on the server before having any effect.
- Node.js files have extension ".js".
Download node: Node.js
- Download the latest version 12.18.3 as the current version may have bugs.
- Once you download and install the Node.js, write a code in file name as .js extension.
- After that open a terminal and types the below command: