Array notation or .method() - which is faster?
<p>I came across the array notation in JavaScript, and I wondered which way would be faster or better to write. I think the second version is harder to read, but are there any benefits of it ? Or does somebody use this way of calling the methods? Or is there no difference between those regarding their speed?</p>

<ul>
<li><p><code>$('#myContainer')['addClass']("active");</code> </p></li>
<li><p><code>$('#myContainer').addClass("active");</code></p></li>
</ul>

<p>I am used to doing it the second way, but is the first way faster or are there any other benefits of using the first version?</p>
