span><br/></code></pre>
</div>

<p class="correct icon">Examples of <strong>correct</strong> code for this rule:</p>

<div class="highlighter-rouge"><pre class="highlight"><code><span class="cm">/*eslint vars-on-top: "error"*/</span><br/><br/><span class="kd">function</span> <span class="nx">doSomething</span><span class="p">()</span> <span class="p">{</span><br/>    <span class="kd">var</span> <span class="nx">first</span><span class="p">;</span><br/>    <span class="kd">var</span> <span class="nx">second<