Why can't I assign for loop to a variable?
<p>So I am just wondering why the following code dosen't work. I am looking for a similar strategy to put the for loop in a variable.</p>

<pre><code>var whatever = for (i=1;i&lt;6;i++) {
console.log(i)
};
</code></pre>

<p>Thanks!</p>
