1
respuesta

Superman quedo dentro

Del siguiente código vemos que Superman queda fuera ya que inicia con i=1 y superman esta en el indice heroes[0]

for( var i = 1;  i < heroes.length;  i++) {
      alert(heroes[i]);
}

Por lo que la solucion seria la siguiente:

for( var i = 0;   i < heroes.length;   i++) {
     alert(heroes[i]);
}
1 respuesta

for( var i = 0; i < heroes.length; i++) { alert(heroes[i]); }