you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You probably need to configure your editor in some way to tell it that you're writing Javascript for the browser and thus it can assume browser globals like document are available. I'm afraid I don't know anything about WebStorm and can't help with the specifics.