Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ciclo for javascript

//Ejemplo de ciclo for
var colores=["rojo","azul","verde"];
for (let i = 0; i < colores.length; i++) { 
  console.log(colores[i]);
}
//Se espera que imprima: rojo azul verde
 
PREVIOUS NEXT
Tagged: #ciclo #javascript
ADD COMMENT
Topic
Name
6+5 =