JavaScript how to pass arguments
<pre><code>function f1(i1, i2) {
  log(i1);
  log(i2);
}

function f2(i1,i2){
  f1(arguments);
}

f2(100,200); 
</code></pre>

<p>In the above case in function f1 i1 gets [100, 200] while i2 is undefined.</p>

<p>What is the correct way to pass arguments to f1 from f2.</p>
