Introduction to Node JS
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.