8. for loop

Antes hacíamos esto:
Captura de Pantalla 2022-05-23 a la(s) 15.49.06.png
Ahora podemos escribirlo así:
for ( let i = 0; i < 10; i++ ) {
console.log(`El número aleatorio es: ${getRandomNumber(200)}`);
}
Obtenemos:
Captura de Pantalla 2022-05-23 a la(s) 15.53.45.png
Challenge 1
Create a for loop that logs the numbers 5 to 100 to the console. Use the console.log() method to log a value to the console.
for (let i=0; i <= 100-5; i++) {
console.log(5+i);
}

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.