Type checker for JavaScript?

后端 未结 5 631
[愿得一人]
[愿得一人] 2020-12-07 02:02

Does anyone know if there\'s a good tool for analyzing JavaScript code and detecting type errors? I know that JavaScript itself is weakly and dynamically typed, but it woul

5条回答
  •  广开言路
    2020-12-07 02:17

    It's not possible to do static-analysis with confidence using any automated tool owing to the dynamic nature of JavaScript. However, one tool that does a great job is Jetbrain's WebStorm and their other IDEs that have JavaScript support.

提交回复
热议问题