Topic 2

Basics of Nodejs and Installation

Nodejs Installation

What is Nodejs?

What Can Node.js Do?

Node allows developers to write JavaScript code that runs directly in a computer process itself instead of running it in a browser. Node can, therefore, be used to write server-side applications with access to the operating system, file system, and everything else required to build fully-functional applications.

Good Reads

Why Node?

Node β€œuses an event-driven, non-blocking I/O model.”

Things to try

Try this after installation

After installing node try to do this-
Save the following in script.js file

console.log("I am a Node program");

Running the terminal command node script.js in the same folder as script.js will start Node, print I am a Node program to the terminal window, and exit, as the script file has finished execution.