JavaScript: What is the equivalent of PHP's "$this->$somefunc()"?
<p>Is it possible to store the name of a function as string in JS, and invoke it from an object, pretty much like the PHP code below?</p>

<pre><code>$this-&gt;$someFunc();
</code></pre>
