is node js javascript code example

Example 1: what is node.js

Javascript was always a client side language until node.js.
Common server side languages include PHP, Python, Perl, Ruby
and several more. Node enables you to use Javascript server side.
This now means you can have a consistent language both ends
which could not be done prior to Node.

Example 2: node js

Node js allows you to run javascript outside of your browser
ex: you are able to run it on your terminal

Example 3: When you run JavaScript in a Node.Js application, elements in a Node.JS Stack actually executes the JavaScript:

When you run JavaScript in a Node.Js application, elements in a Node.JS Stack actually executes that JavaScript: