node --check MYSCRIPT.js(Where MYSCRIPT.js is the name of your script) More info from `man node` This gives a minimal amount of errors. For a more complete job you can try `jshint`
Programming Tips - javaScript: check syntax on the command line
Date: 2020mar30
OS: Linux
Language: javaScript
Q. javaScript: check syntax on the command line
A. Use node.js like this: