how to create a .js file in windows command prompt code example
Example 1: make js file windows command
type NUL > test.html
type NUL > test.js
Example 2: how to run javascript in terminal
// With node.js installed in windows commandline
C:\Users\Name> node
> console.log("Hello World");
Hello World
undefined
>