“There is no script engine for file extension .js”

If you are trying to execute a JavaScript file in Windows using the cscript interpreter, try adding //E:jscript to your call. for example:

cscript //E:jscript foo.js

Print Friendly, PDF & Email