Node JS

Node JS Introduction

nodejs logo


Node JS is a JavaScript run-time environment for executing JavaScript code in the Server-Side. How it get started? We all know JavaScript requires an engine to run. V8 is the JavaScript engine that is being used in Google Chrome browsers. A young man Ryan Dhal, he took the V8 engine and added some more code and created Node JS. Node JS allows the creation of Web Servers and networking tools using JavaScript and collection of "modules" that handles various core functionality.

What is Node JS?

Node JS is a Server-Side scripting language and is event-driven, enabling development of fast web servers with the help of JavaScript. Node JS operates on a single thread, using non-blocking I/O calls, allowing it to support tens of thousands of concurrent connections. Node JS codes loo similar to normal JavaScript code with 'n' number of functions perform callbacks. Its support JSON data where MongoDB, couchDB can be used as database.

Install Node JS

Node JS can be downloaded from

Run a test JavaScript file

Create a sample .js file.

Open Terminal/Console and move to directory where app.js file is present.

Inside app.jsput some sample message

#app.js - Sample Code 
console.log("Hello World!");