javascript var alerts but when used is undefined
<p>This is weird. Check this out:</p>

<pre><code> for( var i = 0; i &lt;= videos.length; i ++ ){

    alert(videos[i].id); // this works and alerts the correct number

    var foo = videos[i].id; // firebug says "videos[i] is undefined"

 }
</code></pre>

<p>There are 3 videos. In FF this alerts all 3 video id's then fails saying that videos[i] is undefined. No Idea, at all.</p>
