What is node js

What is node js

Node.js is a Server side java scripting  used to build reliable and scalable applications. Node.js is Server Side Javascript, used for developing server software. Node.js is not a client side script and it works only in server.It is mainly using as part of  network based programs.This server side scripting is using callback method in server to handle multiple requests.

Node.js can use external libraries for its operations

var socket = require( ‘socket.io’ );
var express = require( ‘express’ );
var http = require( ‘http’ );

The command used for include external library is “require”

The most commonly used framework in node.js is “Express”

The main advantage of node  is non blockable I/O(Input/Output)  and also it following a single threaded method.

Node js has two important sections

1) . Event Selection.

2).  Event Handling.

Areas where  node js can use

1.Network applications

2.Real time web applications

3.General Applications.

4.Distributed Applications.


Leave a Reply