No se como cortar le siclo :´(


#1

https://www.codecademy.com/es/courses/javascript-beginner-en-820bg/1/1?curriculum_id=53a32b14fed2a896c6000001#

var count = 0
var ciclo = function(count++){
while(count < 3){
console.log("¡Estoy en un bucle!");

}

};

ciclo();


#2

Usted tiene que cambiar el valor de count dentro de la while bucle:

var count = 0
var ciclo = function() {
  while (count < 3) {
    console.log("¡Estoy en un bucle!");
    count++;
  }
};

ciclo();

#3

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