Skip to content

Latest commit

 

History

History
executable file
·
14 lines (9 loc) · 251 Bytes

File metadata and controls

executable file
·
14 lines (9 loc) · 251 Bytes

importance: 5


Substituir "for" por "while"

Reescreva o código, mudando o loop for para while sem alterar seu comportamento (o resultado deve continuar o mesmo).

for (let i = 0; i < 3; i++) {
  alert( `número ${i}!` );
}