I created a Test.js file and wrote two lines of JS code in it:
var a = 5; console.log(\"The result is = \" + a);
The output should be:
I think that it would be best if you give Node.js a try. This way, you get to call node test.js on a console window and see the result.
node test.js