Solucionado (ver solución)
Solucionado
(ver solución)
1
respuesta

Even Numbers from 1 to 100

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Even numbers</title>
</head>
<body>
    <h1>Find even numbers</h1>
</body>
<script>
    let increase = 1;

    while (increase <= 100) {
        if (increase % 2 === 0) {
            document.write(increase + ' is a even number. <br>')
        }

        increase++;
    }

    document.write('THE END');
</script>
</html>
1 respuesta
solución!

Hola Carolina! Espero que estés bién.

Gracias por compartir tu código con nosotros. Lo probé aquí y funciona perfectamente!

Felicidades por tu dedicación, y no olvides consultarnos en caso de duda. Estaremos aquí para ayudarte! :)

Si este post te ayudó, por favor, marca como solucionado ✓. Continúa con tus estudios!