Node JS Runtime

This is a JavaScript Runtime Environment that lets you run JavaScript on a standalone machine or back-end server.
Node or NodeJS as it is typically called is not a programming language or a framework.
Prior to NodeJS you could only run JavaScript inside a Browser.
Using NodeJS you are able to build standalone applications.
NodeJS uses the Google V8 JavaScript Engine.


Open source command line tools for server side javascript

link - nodejs.org/en 

check the version and update if necessary.

node -v     // 16.4.0 

install a new version

visit the website and download the latest version 


Hello World Example

Node.js files have the file extension ".js"
Node.js files must be initiated from the command line.


Open File Explorer and create the following folder

C:\temp\testing\ 

hello.js

Create a javascript file "hello.js" in the folder
Add the following line of code:

console.log("Hello World from Node"); 

Open the Command Prompt (cmd)
cd c:\temp\testing
node hello.js
SS





© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopNext