Python vs JavaScript - Javatpoint
Python is mainly used for server-side programming, while JavaScript runs on both the server and the browser. Python is easy to start programming than JavaScript ...
Node.js
JavaScript is a lightweight, object-oriented scripting language that is used to build dynamic HTML pages with interactive effects on a webpage. JavaScript is also commonly used in game development and mobile app development. It is an interpreted scripting language, and the code can only be executed and run in a web browser. We can use <anchor>Node.js</anchor> to execute and run the code outside of the browser. It's also known as a browser's language, and it can be used for both client-side and server-side development. Brendan Eich of Netscape created it and was first published in 1995. The language was originally known as LiveScript before being renamed JavaScript. JavaScript's syntax is heavily influenced by the programming language C. The extension of JavaScript filename is .js.
Node.js Tutorial: What It is, Framework, Architecture - javaTpoint
Node.js Tutorial: What It is, Framework, Architecture - javaTpoint

[![Logo](/static/img/logo.png)](/)

Tutorials

×

### Frontend

[HTML](/html-tutorial) [CSS](/css-tutorial) [Bootstrap](/bootstrap-tutorial) [Jquery](/jquery-tutorial) [React](/reactjs-tutorial) [Angular](/angularjs-tutorial)

### Data Analytics

[Excel](/excel-tutorial) [Tableau](/tableau) [Power BI](/power-bi) [NumPy](/numpy-tutorial) [Panda](/python-pandas) [Scipy](/python-scipy)

### Database

[Sql](/sql-tutorial) [Mongo DB](/mongodb-tutorial) [Oracle](/oracle-tutorial) [Maria DB](/mariadb-tutorial) [PostgreSQL](/postgresql-tutorial) [Sql Server](/sql-server-tutorial)

### Online Compiler

[C](/compiler/c) [C++](/compiler/c++) [Php](/compiler/php) [Java](/compiler/java) [Html](/compiler/html) [Python](/compiler/python) [Javascript](/compiler/javascript)

### Backend

[Python](/python-tutorial) [Node Js](/nodejs-tutorial) [MySQL](/mysql-tutorial) [PHP](/php-tutorial) [Java](/java-tutorial) [C#](/c-sharp-tutorial) [R](/r-tutorial) [Kotlin](/kotlin-tutorial) [Django](/django-tutorial) [PostgreSQL](/postgresql-tutorial) [Spring Boot](/spring-boot-tutorial) [Ruby](/ruby-tutorial) [Go](/go-tutorial) [Rust](/rust-tutorial)

Interview

×

### Technical Interview

[C](/c-interview-questions) [C++](/cpp-interview-questions) [Php](/php-interview-questions) [Java](/corejava-interview-questions) [Python](/python-interview-questions) [JavaScript](/javascript-interview-questions) [TypeScript](/typescript-interview-questions)

### Java Interview

[JDBC](/jdbc-interview-questions) [Servlet](/servletinterview) [Maven](/maven-interview-questions) [Jenkins](/jenkins-interview-questions) [Spring](/spring-interview-questions) [Spring Boot](/spring-boot-interview-questions) [JDB](/jdb-interview-questions) [Hibernate](/hibernate-interview-questions) [JSF](/jsf-interview-questions)

### Web Interview

[HTML](/html-interview-questions) [CSS](/css-interview-questions) [JavaScript](/javascript-interview-questions) [Jquery](/jquery-interview-questions) [Angular](/angular-interview-questions) [Node-JS](/node-js-interview-questions) [AJAX](/ajax-interview-questions)

### Database Interview

[DBMS](/dbms-interview-questions) [SQL](/sql-interview-questions) [PL/SQL](/pl-sql-interview-questions) [Oracle](/oracle-interview-questions) [MySQL](/mysql-interview-questions) [MongoDB](/mongodb-interview-questions) [Redis](/redis-interview-questions-and-answers) [MariaDB](/mariadb-interview-questions)

### Company Interviews

[IBM](/ibm-interview-questions) [Adobe](/adobe-interview-questions) [Microsoft](/microsoft-interview-questions) [Amazon](/amazon-interview-questions) [TCS](/tcs-interview-questions) [HCL](/hcl-interview-questions) [Wipro](/wipro-interview-questions) [DXC](/dxc-technology-interview-questions) [Accenture](/accenture-interview-questions) [Capgemini](/capgemini-interview-questions) [Space X](/spacex-interview-questions) [Ericsson](/ericsson-interview-questions) [Infosy](/infosys-interview-questions) [IGate](/igate-interview-questions) [EXL](/exl-interview-questions) [IndiaMART](/indiamart-interview-questions) [Sapient](/sapient-interview-questions)

Compiler
- [C](/compiler/c)
- [R](/compiler/r)
- [C++](/compiler/c++)
- [Php](/compiler/php)
- [Java](/compiler/java)
- [Html](/compiler/html)
- [Swift](/compiler/swift)
- [Python](/compiler/python)
- [Javascript](/compiler/javascript)
- [Typescript](/compiler/typescript)

- [![home](https://static.javatpoint.com/images/icon/home.png)Home](/)
- [![python](https://static.javatpoint.com/images/icon/python.png) Python](/python-tutorial)
- [![java](https://static.javatpoint.com/images/icon/java.png) Java](/java-tutorial)
- [![javascript](https://static.javatpoint.com/images/icon/js.png) JavaScript](/javascript-tutorial)
- [![html](https://static.javatpoint.com/images/icon/html.png)HTML](/html-tutorial)
- [![sql](https://static.javatpoint.com/images/icon/sql.png) SQL](/sql-tutorial)
- [![php](https://static.javatpoint.com/images/icon/php.png) PHP](/php-tutorial)
- [![c#](https://static.javatpoint.com/images/icon/csharp.png) C#](/c-sharp-tutorial)
- [![c++](https://static.javatpoint.com/images/icon/cpp.png) C++](/cpp-tutorial)
- [![data structures](https://static.javatpoint.com/images/icon/ds.png) DS](/data-structure-tutorial)
- [![aptitude](https://static.javatpoint.com/images/icon/aptitude.png) Aptitude](/aptitude/quantitative)
- [![reasoning](https://static.javatpoint.com/images/icon/reasoning.png) Reasoning](/reasoning)
- [![selenium](https://static.javatpoint.com/images/icon/selenium.png) Selenium](/selenium-tutorial)
- [![dbms](https://static.javatpoint.com/images/icon/dbms.png) DBMS](/dbms-tutorial)
- [![c](https://static.javatpoint.com/images/icon/c.png) C](/c-programming-language-tutorial)
- [![android](https://static.javatpoint.com/images/icon/android.png) Andriod](/android-tutorial)
- [![interview questions](https://static.javatpoint.com/images/icon/interview.png) Interview Q](/interview-tips)

## Node.js Tutorial

- [Node.js Tutorial](/nodejs-tutorial)
- [Install Node.js Windows](/install-nodejs)
- [Install Node.js Linux](/install-nodejs-on-linux-ubuntu-centos)
- [Node.js First Example](/nodejs-first-example)
- [Node.js Console](/nodejs-console)
- [Node.js REPL](/nodejs-repl)
- [Node.js NPM](/nodejs-package-manager)
- [Node.js CL Options](/nodejs-command-line-options)
- [Node.js Globals](/nodejs-global-objects)
- [Node.js OS](/nodejs-os)
- [Node.js Timer](/nodejs-timer)
- [Node.js Errors](/nodejs-errors)
- [Node.js DNS](/nodejs-dns)
- [Node.js Net](/nodejs-net)
- [Node.js Crypto](/nodejs-crypto)
- [Node.js TLS/SSL](/nodejs-tls-ssl)
- [Node.js Debugger](/nodejs-debugger)
- [Node.js Process](/nodejs-process)
- [Node.js Child Process](/nodejs-child-process)
- [Node.js Buffers](/nodejs-buffers)
- [Node.js Streams](/nodejs-streams)
- [Node.js File System](/nodejs-file-system)
- [Node.js Path](/nodejs-path)
- [Node.js StringDecoder](/nodejs-stringdecoder)
- [Node.js Query String](/nodejs-query-string)
- [Node.js ZLIB](/nodejs-zlib)
- [Node.js Assertion](/nodejs-assertion-testing)
- [Node.js V8](/nodejs-v8)
- [Node.js Callbacks](/nodejs-callbacks)
- [Node.js Events](/nodejs-events)
- [Node.js Punycode](/nodejs-punycode)
- [Node.js TTY](/nodejs-tty)
- [Node.js Web Modules](/nodejs-web-modules)
- [NestJS](/nestjs)

## Node.js MySQL

- [MySQL Create Connection](/nodejs-mysql-create-connection)
- [MySQL Create Database](/nodejs-mysql-create-database)
- [MySQL Create Table](/nodejs-mysql-create-table)
- [MySQL Insert Record](/nodejs-mysql-insert-record)
- [MySQL Update Record](/nodejs-mysql-update-record)
- [MySQL Delete Record](/nodejs-mysql-delete-record)
- [MySQL Select Record](/nodejs-mysql-select-record)
- [MySQL Select Unique](/nodejs-mysql-select-unique-record)
- [MySQL Drop Table](/nodejs-mysql-drop-table)

## Node.js MongoDB

- [Create Connection](/nodejs-mongodb-create-connection)
- [Create Database](/nodejs-mongodb-create-database)
- [Create Collection](/nodejs-mongodb-create-collection)
- [MongoDB Insert](/nodejs-mongodb-insert)
- [MongoDB Select](/nodejs-mongodb-select)
- [MongoDB Query](/nodejs-mongodb-query)
- [MongoDB Sorting](/nodejs-mongodb-sorting)
- [MongoDB Remove](/nodejs-mongodb-remove)

## Difference

- [Node.js vs AngularJS](/nodejs-vs-angularjs)
- [Node.js vs Python](/nodejs-vs-python)
- [Node.js vs PHP](/nodejs-vs-php)
- [Node.js vs Java](/nodejs-vs-java)

## Misc

- [Node.js "process.env" Property](/nodejs-process-env-property)
- [Nodejs semantic versioning](/nodejs-semantic-versioning)

## Node.js MCQ

- [Node.js MCQ](/nodejs-mcq)

## Node.js Express

- [Express.js Tutorial 10+](/expressjs-tutorial)

## Interview Questions

- [Node.js Interview](/node-js-interview-questions)
- [AngularJS Interview](/angularjs-interview-questions)
- [JavaScript Interview](/javascript-interview-questions)
- [jQuery Interview](/jquery-interview-questions)
- [Backbone.js Interview](/backbone-js-interview-questions)
- [Ember.js Interview](/ember-js-interview-questions)
- [Neo4j Interview](/neo4j-interview-questions)

[next →](install-nodejs)

# Node.js Tutorial

![Node.js tutorial](js/nodejs/images/node-js-tutorial.png)

Node.js tutorial provides basic and advanced concepts of Node.js. Our Node.js tutorial is designed for beginners and professionals both.

Node.js is a cross-platform environment and library for running JavaScript applications which is used to create networking and server-side applications.

Our Node.js tutorial includes all topics of Node.js such as Node.js installation on windows and linux, REPL, package manager, callbacks, event loop, os, path, query string, cryptography, debugger, URL, DNS, Net, UDP, process, child processes, buffers, streams, file systems, global objects, web modules etc. There are also given Node.js interview questions to help you better understand the Node.js technology.

## What is Node.js

Node.js is a cross-platform runtime environment and library for running JavaScript applications outside the browser. It is used for creating server-side and networking web applications. It is open source and free to use. It can be downloaded from this link [https://nodejs.org/en/](https://nodejs.org/en/)

Many of the basic modules of Node.js are written in JavaScript. Node.js is mostly used to run real-time server applications.

The definition given by its official documentation is as follows:

?Node.js is a platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.?

Node.js also provides a rich library of various JavaScript modules to simplify the development of web applications.

**Different parts of Node.js**

The following diagram specifies some important parts of Node.js:

![what is nodejs](js/nodejs/images/what-is-nodejs.png)

## Features of Node.js

Following is a list of some important features of Node.js that makes it the first choice of software architects.

1. **Extremely fast:** Node.js is built on Google Chrome's V8 JavaScript Engine, so its library is very fast in code execution.
2. **I/O is Asynchronous and Event Driven:** All APIs of Node.js library are asynchronous i.e. non-blocking. So a Node.js based server never waits for an API to return data. The server moves to the next API after calling it and a notification mechanism of Events of Node.js helps the server to get a response from the previous API call. It is also a reason that it is very fast.
3. **Single threaded:** Node.js follows a single threaded model with event looping.
4. **Highly Scalable:** Node.js is highly scalable because event mechanism helps the server to respond in a non-blocking way.
5. **No buffering:** Node.js cuts down the overall processing time while uploading audio and video files. Node.js applications never buffer any data. These applications simply output the data in chunks.
6. **Open source:** Node.js has an open source community which has produced many excellent modules to add additional capabilities to Node.js applications.
7. **License:** Node.js is released under the MIT license.

* * *

## Node.js Index

* * *

**Node.js Tutorial**

- [Node.js Tutorial](nodejs-tutorial)
- [Install Node.js Windows](install-nodejs)
- [Install Node.js Linux](install-nodejs-on-linux-ubuntu-centos)
- [Node.js First Example](nodejs-first-example)
- [Node.js Console](nodejs-console)
- [Node.js REPL](nodejs-repl)
- [Node.js NPM](nodejs-package-manager)
- [Node.js CL Options](nodejs-command-line-options)
- [Node.js Globals](nodejs-global-objects)
- [Node.js OS](nodejs-os)
- [Node.js Timer](nodejs-timer)
- [Node.js Errors](nodejs-errors)
- [Node.js DNS](nodejs-dns)
- [Node.js Net](nodejs-net)
- [Node.js Crypto](nodejs-crypto)
- [Node.js TLS/SSL](nodejs-tls-ssl)
- [Node.js Debugger](nodejs-debugger)
- [Node.js Process](nodejs-process)
- [Node.js Child Process](nodejs-child-process)
- [Node.js Buffers](nodejs-buffers)
- [Node.js Streams](nodejs-streams)
- [Node.js File System](nodejs-file-system)
- [Node.js Path](nodejs-path)
- [Node.js StringDecoder](nodejs-stringdecoder)
- [Node.js Query String](nodejs-query-string)
- [Node.js ZLIB](nodejs-zlib)
- [Node.js Assertion](nodejs-assertion-testing)
- [Node.js V8](nodejs-v8)
- [Node.js Callbacks](nodejs-callbacks)
- [Node.js Events](nodejs-events)
- [Node.js Punycode](nodejs-punycode)
- [Node.js TTY](nodejs-tty)
- [Node.js Web Modules](nodejs-web-modules)

**Node.js MySQL**

- [MySQL Create Connection](nodejs-mysql-create-connection)
- [MySQL Create Database](nodejs-mysql-create-database)
- [MySQL Create Table](nodejs-mysql-create-table)
- [MySQL Insert Record](nodejs-mysql-insert-record)
- [MySQL Delete Record](nodejs-mysql-delete-record)
- [MySQL Select Record](nodejs-mysql-select-record)
- [MySQL Select Unique](nodejs-mysql-select-unique-record)
- [MySQL Drop Table](nodejs-mysql-drop-table)

**Node.js MongoDB**

- [Create Connection](nodejs-mongodb-create-connection)
- [Create Database](nodejs-mongodb-create-database)
- [Create Collection](nodejs-mongodb-create-collection)
- [MongoDB Insert](nodejs-mongodb-insert)
- [MongoDB Select](nodejs-mongodb-select)
- [MongoDB Query](nodejs-mongodb-query)
- [MongoDB Sorting](nodejs-mongodb-sorting)
- [MongoDB Remove](nodejs-mongodb-remove)

**Difference**

- [Node.js vs AngularJS](nodejs-vs-angularjs)
- [Node.js vs Python](nodejs-vs-python)
- [Node.js vs PHP](nodejs-vs-php)
- [Node.js vs Java](nodejs-vs-java)

**Node.js Express**

- [Express.js Tutorial](expressjs-tutorial)
- [What is Express.js](what-is-expressjs)
- [Install Express.js](install-expressjs)
- [Express.js Request](expressjs-request)
- [Express.js Response](expressjs-response)
- [Express.js Get](expressjs-get)
- [Express.js Post](expressjs-post)
- [Express.js Routing](expressjs-routing)
- [Express.js Cookies](expressjs-cookies)
- [Express.js File Upload](expressjs-file-upload)
- [Express.js Middleware](expressjs-middleware)
- [Express.js Scaffolding](expressjs-scaffolding)
- [Express.js Template](expressjs-template)

**Interview Questions**

- [Node.js Interview](node-js-interview-questions)
- [AngularJS Interview](angularjs-interview-questions)
- [JavaScript Interview](javascript-interview-questions)
- [jQuery Interview](jquery-interview-questions)
- [Backbone.js Interview](backbone-js-interview-questions)
- [Ember.js Interview](ember-js-interview-questions)
- [Neo4j Interview](neo4j-interview-questions)

* * *

## Prerequisite

Before learning Node.js, you must have the basic knowledge of JavaScript and any programming language.

## Audience

Our Node.js tutorial is designed to help beginners and professionals.

## Problem

We assure that you will not find any problem in this Node.js tutorial. But if there is any mistake, please post the problem in contact form.

Next Topic[How to Install Node.js](install-nodejs)

[next →](install-nodejs)

## Latest Courses

[![Python](/static/img/python.png)](/python-tutorial)

[![Java](/static/img/java.png)](/java-tutorial)

[![Javascript](/static/img/js.png)](/javascript-tutorial)

[![Html](/static/img/html-5.png)](/html-tutorial)

[![Database](/static/img/database.png)](/sql-create-database)

[![Php](/static/img/php.png)](/php-tutorial)

[![C++](/static/img/c-.png)](/cpp-tutorial)

[![React](/static/img/react.png)](/reactjs-tutorial)

[![Data-Structures](/static/img/data-structures.png)](/data-structure-tutorial)

[![Cloud-Computing](/static/img/cloud-computing.png)](/cloud-computing)

[![Ethical-Hacking](/static/img/ethical-hacking.png)](/ethical-hacking)

![Logo](/static/img/logo.png)

We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks

##### Contact info

G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India

[\[email protected\]](/cdn-cgi/l/email-protection).

##### Follow us

[![Facebook](/static/img/facebook.png)](https://www.facebook.com/javatpoint)[![Twitter](/static/img/twitter.png)](https://twitter.com/pagejavatpoint)![Rss](/static/img/rss.png)[![Blogspot](/static/img/jp.png)](https://javatpoint.blogspot.com)[![Youtube](/static/img/youtube.png)](https://www.youtube.com/channel/UCUnYvQVCrJoFWZhKK3O2xLg)

##### Tutorials

[Java](/java-tutorial) [Data Structures](/data-structure-tutorial) [C Programming](/c-programming-language-tutorial) [C++ Tutorial](/cpp-tutorial) [C# Tutorial](/c-sharp-tutorial) [PHP Tutorial](/php-tutorial) [HTML Tutorial](/html-tutorial) [JavaScript Tutorial](/javascript-tutorial) [jQuery Tutorial](/jquery-tutorial) [Spring Tutorial](/spring-tutorial)

##### Interview Questions

[Tcs](/tcs-interview-questions) [Intuit](/intuit-interview-questions) [Wipro](/wipro-interview-questions) [Adobe](/adobe-interview-questions) [Infosys](/infosys-interview-questions) [Amazon](/amazon-interview-questions) [Accenture](/accenture-interview-questions) [Cognizant](/cognizant-interview-questions) [Capgemini](/capgemini-interview-questions) [Microsoft](/microsoft-interview-questions)

##### Online Compiler

[C](/compiler/c) [R](/compiler/r) [C++](/compiler/c++) [Php](/compiler/php) [Java](/compiler/java) [Html](/compiler/html) [Swift](/compiler/swift) [Python](/compiler/python) [JavaScript](/compiler/javascript) [TypeScript](/compiler/typescript)

© Copyright 2024 Javatpoint. All Rights Reserved.