title: How to pass varying number of arguments to a single function
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1959040/is-it-possible-to-send-a-variable-number-of-arguments-to-a-javascript-function">Is it possible to send a variable number of arguments to a JavaScript function?</a>  </p>
  </blockquote>
  
  
  
  <p>How would I pass a different number of variables to a function every time I call it?</p>
  
  <p>For example if I have function <code>add()</code>, would I be able to pass 5 arguments to it and use <code>arguments.length</code> in loop to do the sum?</p>