Passing a function as an argument in a javascript function
<p>I was wondering whether this is legal to do. Could I have something like:</p>

<pre><code>function funct(a, foo(x)) {
  ...
}
</code></pre>

<p>Where <code>a</code> is an array and <code>x</code> is an integer for another function called <code>foo</code>?</p>
