The benefits of Node.js
Node is by nature a non-blocking, asynchronous application. In comparison, C# is a blocking language, unless you use its asynchronous features.
Installing Node on your machine
On your favourite browser, navigate to nodejs.org. Download the LTS release and install it on your machine. Open up your command prompt application and type the following commands:
node –v npm -v
these should print the versions of Node and NPM installed on your machine.
Create a “.js” file and type the following and save the file:
const tech = "Hello Node.js!!!"; console.log(tech);
In your command prompt browse to the path containing this file and type:
This will print your defined variable in the console.
That was easy. But it’s just the beginning.
vs. browser version
For example, there is no DOM element anymore, so there won’t be a
window global variable is replaced by
global. And there is another global variable called