SóProvas


ID
1272046
Banca
MPE-RS
Órgão
MPE-RS
Ano
2012
Provas
Disciplina
Programação
Assuntos

A instrução da linguagem Javascript que interrompe o laço de repetição (loop) atual e continua com o próximo valor é a

Alternativas
Comentários
  • The continue statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.

    This example skips the value of 3:

     

    Example

    for (i = 0; i < 10; i++) {
        if (i === 3) { continue; }
        text += "The number is " + i + "<br>";
    }

     

    FONTE: http://www.w3schools.com/js/js_break.asp