title: Varargs in JavaScript
body: <p>I want to write a constructor which apllies variable number of arguments. E.g.</p>
  
  <pre><code>var Const= function(&lt;formalParameters&gt;){
      this.obj={val:formalParameter1, {val:formalParameter2, {....}}}
  }
  </code></pre>
  
  <p>How can I do that?</p>