Can't understand this line of JavaScript
<p>Thanks for your attention and time.</p>

<p>I'm modifying an existing JavaScript but can't understand a line of code. Please help me understanding this line:</p>

<pre><code> rowArray[i].value = rows[i].getElementsByTagName('td')[sortOn].firstChild.nodeValue;
</code></pre>

<p>I am clear till <code>.getElementsByTagName('td')</code>, <code>sortOn</code> is being passed in this function as a parameter. But I couldn't understand <code>[sortOn].firstChild.nodeValue;</code></p>

<p>Please guide me,</p>

<p>thanks</p>
