How to define a variable number of variables in js?
<p>Here is a simple example of what I want to be able to do.</p>

<p>I want a function returnFunctions which will take an integer N as an argument and will define the following functions:</p>

<pre><code>func1(x) = x
func2(x) = 2*x
...
funcN(x) = n*x
</code></pre>

<p>How can I do something like this in javascript?</p>
