Q:

how to run javascript in terminal

$ node // now we can execute code in console
> 2 + 4 //our input
6 //output 
> .exit // or ctrl + c
1
// With node.js installed in windows commandline
C:\Users\Name> node
> console.log("Hello World");
Hello World
undefined
> 
1

New to Communities?

Join the community