logo

Node.js Tutorial

What is Node.js

Node.js Tutorial

This Node.js tutorial is written by industry experts to provide basic and advanced concepts of Node.

It is written in very simple language to provide maximum benefit to beginners as well as professionals. Here, you will get everything in simple and easy steps.


What is Node.js?

Node.js is a very powerful JavaScript-based platform built on Google Chrome's JavaScript V8 Engine and an open source server environment. It is completely free, and used by thousands of developers around the world. It makes you able to run JavaScript on the server.

Node.js is used to develop I/O intensive web applications like video streaming sites, single-page applications, and other web applications.


Why Node.js?

Node.js uses asynchronous programming and runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient and fast.

This is how PHP or ASP handles a file request

  • Sends the task to the computer's file system.
  • Waits while the file system opens and reads the file.
  • Returns the content to the client.
  • Ready to handle the next request.

This is how Node.js handles a file request

  • Sends the task to the computer's file system.
  • Ready to handle the next request.
  • When the file system has opened and read the file, the server returns the content to the client.

So, node.js eliminates the waiting, and simply continues with the next request. That's why it is fast and efficient.


Prerequisites

Before start learning Node.js, it will be good if you have the basic knowledge of JavaScript and other web technologies such as HTML, CSS, AJAX, etc.