How do i run JavaScript file Through Terminal?

How do i run JavaScript file Through Terminal?
0

There might be a situation when I need to check mine JavaScript code without using a browser, in that situation what should we do?

I use Node.js, then you can run files from command prompt using node myscript.js

Yup. https://nodejs.org/