title: pass variable arguments to functions - javascript
body: <p>I defined a function that can take any number of arguments but none is required:</p>
  
  <pre><code>function MyFunction() { //can take 0, 1, 1000, 10000, n arguments
  //function code
  }
  </code></pre>
  
  <p>Now i would like to write another function that call MyFunction with a variable number of arguments each time:</p>
  
  <pre><code>function Caller(n) {
  var simple_var = "abc";
  MyFunction() //how can i pass simple_var to MyFunction n times?
  } 
  </code></pre>
  
  <p>Thanks in advance :)</p>