Validating JavaScript

A debugging tool like Chrome Developer Console runs when you are executing your code. A "linter" is a program that analyzes code without executing it. Linters look for syntax errors and then fix the code. This is known as "static code analysis". The main goal of using a linter is to increase the quality and consistency of your JavaScript program. Watch this video to learn how linters are used, and then explore some popular lint applications.

  • JSLint was the first "linter" program developed by Douglas Crockford.
  • ESLint is a lint program that is built into many code editors, such as Visual Studio Code, Atom, and Sublime.
  • JSHint is a widely used program by companies like Facebook and Twitter.
  • Flow is an open-source static type checker developed by Facebook.
  • TypeScript is developed by Microsoft.

>



Source: Thomas Bradley, https://youtu.be/4vXx5gClY6c
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Tuesday, October 4, 2022, 2:12 PM