guo
guo

Reputation: 10211

Why is unresolved JavaScript variable "Weak Warning" instead of "Error" in WebStorm Inspection?

Why not just think unresolved JavaScript variable an error?

I am from Java and cannot figure out that. Is it because JavaScript have some unresolved JavaScript variable that even IDE cannot know?

enter image description here

Upvotes: 0

Views: 596

Answers (1)

Ursache
Ursache

Reputation: 306

Here is a scenario: webstorm cannot predict what variables will be available globally. For example check jQuery's $ sign.

A related question: Webstorm says console is an unresolved variable

Upvotes: 1

Related Questions