Introduction to Node JS

What is Node JS - Introduction - SbDevBlog

Introduction to Node JS

To understand Node.js, let’s know JS (JavaScript) first.

Javascript began its journey in 1995. JS allows the implementation of complex features like dynamic content, controlling multimedia, animating images, and async network operations like AJAX.

From its origin to now, JavaScript has needed a browser to execute the script. Node JS can write server-side applications using the operating system and file system. Node is the runtime environment for JavaScript code.

Node.js is written in C++ and embeds Chrome’s V8 engine. Developers can use Node to build fast and scalable applications. Unlike JS, Node.js is not browser-dependent. Therefore, developers can write JS code that runs directly in a computer process instead of a browser. Hence, we can use Node to build server-side applications.

Node.js to build a fast and scalable networking application perfect for building services for the Rest API.

Node.js applications are single-threaded, which means a single thread can be used to serve multiple clients.

Node applications are asynchronous. It means that when the application involves I/O operations, the thread doesn’t wait for the result of the operation. Hence, it is ideal for building I/O-intensive applications.

Node is not suitable for CPU-intensive applications. Hence, Node is not ideal for CPU-intensive applications.

Since the developer can execute Node on the computer, Node.js doesn’t have browser environment objects such as Windows or document objects. Node has things for working with the file system, network, operating system, etc.

This is the first post for Node JS, and I will continue to post on Node.

Thanks for reading the post, Introduction to Node JS.

Thanks for visiting SbDevBlog.

4 thoughts on “Introduction to Node JS

Leave a Reply

Your email address will not be published. Required fields are marked *