how to run javascript in terminal

JavaScript
// With node.js installed in windows commandline
C:\Users\Name> node
> console.log("Hello World");
Hello World
undefined
> 
Source