Running JSHint with HTML and getting errors
问题 I'm a newbie to JSHint and trying to run it to validate my Javascript. I have node.js installed and when i try to run JSHint i get the error below. C:\Users\574839\Desktop\testscr.js:1 (function (exports, require, module, __filename, __dirname) { <!DOCTYPE html> ^ SyntaxError: Unexpected token < at Object.exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:513:28) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js