Using getElementsByTagName and getAttribute methods
<p>I have combined the <code>getElementsByTagName</code> and <code>getAttribute</code> methods to get the title attribute of every paragraph element in the document. Here is the code:</p>

<pre><code>var paras = document.getElementsByTagName('p');
for (i = 0; i &lt; paras.length; i++) {
    console.log(paras[i].getAttribute('title'));
}
</code></pre>

<p>The line of code I am specifically need assistance with is this one:</p>

<pre><code>console.log(paras[i].getAttribute('title'));
</code></pre>

<p>What is the <code>[i]</code> doing within this line of code? Is this the 'counter' variable that I declared in the <code>for</code> loop that is incrementing on each iteration? And is the <code>[i]</code> also representative of the index of the array that is returned by the <code>getElementsByTagName</code> function?</p>
