Dynamic instantiation in JavaScript
<p>Apart from eval, is there any other way to instantiate an object using variable argument list?</p>

<p>E.g.: <code>var foo = instantiate(className, [arg1, arg2, ...])</code></p>

<p>Not having any particular application in mind, it's just something I would like to know how to do.</p>
