<meta charset="utf-8">
<script>
var heroes = ["Superman", "Thor", "Batman", "Mujer Maravilla"];
for( var i = 0; i < heroes .length; i++) {
alert(heroes[i]);
}
</script>
<meta charset="utf-8">
<script>
var heroes = ["Superman", "Thor", "Batman", "Mujer Maravilla"];
for( var i = 0; i < heroes .length; i++) {
alert(heroes[i]);
}
</script>
Exacto.Los array inician con el indice 0 .