Return to site

What is Node.js and When Should I Use It?

· Web Development

Node.JS Development is now gaining popularity in the market. If you are not quite sure what it is or where it fits into your development workflow, keep reading this blog. You’ve heard people praising NodeJS and now you’re wondering if it’s something you need to learn. It’s an back-end technology and we will find out what’s different about Node.

What Is Node.js?

Node.js is a Javascript runtime built on Chrome’s Javascript engine and it uses event-driven non-blocking i/o model that is efficient and lightweight. Node.js Is built on Google Chrome V8 JavaScript Engine that is the open source which also runs in Chrome, Opera and Vivaldi browsers. It is designed for performance in mind for compiling Javascript directly into machine code that can execute in system.

How to Install Node.js?

Npm is an package manager that comes bundled with Node.js. You can download from Node download page that are Node binaries available for your system. You can type node -v into your terminal of your system to check if Node is installed or not. Something like this v8.9.4 is displayed.

Syntax Of Node?

You can create a new file hello.js and copy in the following code:

console.log("Hello, World!");

Node’s built-in console module would display a message like : node hello.js

 

Conclusion

With increasing value of Javascript Node continues to have a great future. It would be used mainly for cross platform app development and desktop applications.