Get number from one to x in a loop?
<p>How do I get all the digits from <code>0</code> - <code>x</code> if x is a variable like so:</p>

<pre><code>var x = 5
</code></pre>

<p>Then loop then so it logs them all individually by <code>console.log()</code>?</p>

<p>I was thinking I could use <code>.each()</code>, but it might make more sense to use something like <code>for</code> or while. I would post code, but I honestly can't think of a good/possible way to do this.</p>
