Falta pouco!

0 dias

0 horas

0 min

0 seg

1
resposta

Do for para o while ! Mesmo resultado

  for( var i = 0; i < 10; i++ ) {
     alert( "O resultado é " + (2 * i) );
  }

  var i = 0;
  while(i < 10){
     alert( "O resultado é " + (2 * i) );
     i++;
  }
1 resposta

Excelente!