13.Bucles y arreglos III


#1

Ayuda! "There was a problem with your syntax."


Estoy en 13.Bucles y arreglos III


No sé qué sale mal :disappointed:


ar arreglo = [3 , 6, 2, 56, 32, 5, 89, 32];
var mayor = 0;

for (var i = 0; i = mayor = arreglo; i++) {

if(arreglo[i] > mayor){ mayor = arreglo[i]; }


console.log(mayor);


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.