0

I want to write a constructor which apllies variable number of arguments. E.g.

var Const= function(<formalParameters>){
    this.obj={val:formalParameter1, {val:formalParameter2, {....}}}
}

How can I do that?

0 Answers0