Set a range of numbers as a variable (Javascript)
<p>Let's say I want a variable to contain numbers from 1 to 100.
I could do it like this:</p>

<pre><code>var numbers = [1,2,3,4,...,98,99,100]
</code></pre>

<p>But it would take a bunch of time to write all those numbers down. 
Is there any way to set a range to that variable? Something like:</p>

<pre><code>var numbers = [from 1, to 100] 
</code></pre>

<p>This might sound like a really nooby question but haven't been able to figure it out myself. Thanks in advance.</p>