How can I get an editor to proofread my JavaScript to tell me when a variable name isn't correct? : <p>I want a way to proofread my JavaScript to make sure I've entered all my variable names correctly. So when I have something like this:</p>

<pre><code>var foo = 1;
var bar = fooo + 1;
</code></pre>

<p>I want <code>fooo</code> to have a red underline.</p>

<p>Is there a way to do this? I thought Visual Studio Code would be ideal but I'm not too particular about what editor I use.</p>
