Saturday, November 28, 2020

Learn Node JS and NPM in JavaScript -Day 7

 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:
                                                  > node hello.js
  • It gives the output, that's why vs code is called as out of box supporter of HTML programming.






 NPM:

  • The NPM  i.e node. Package manager  is a javscriptp javscript manager.
  • The NPM  is interested on your computer when you install Node.js .








Thank you..









No comments:

Post a Comment

Function in SQL -part 8

  In this blog we are going to understand  Sql function.   FUNCTION: A function is a database object in SQL Server. It accepts only input pa...