Ejercicio bucle while

El ejercicio de while tiene una falla y no puedo ejecutar la prueba correctamente. Si alguien puede darme una solución por favor, se los agradecería.

   **Tu código hasta el momento**

// Configuración
var myArray = [];

// Cambia solo el código debajo de esta línea
var i = 0;
console.log(myArray);

while (i > 5) {
  myArray.push(i)
  yo++;
};

console.log(myArray);
   **Información de tu navegador:**

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36

Desafío: Itera con el bucle “while” de JavaScript

Enlaza al desafío:

i starts at 0, so will this loop ever run?

Also, you condition is for while i > 5, but you keep making i bigger, so you’re going to have trouble with the loop never stopping.

Mod Edit: SOLUTION REMOVED

el ejercicio pide que vaya de 5 a 0 , por eso el valor inicial de i=5

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

El ejemplo agrega los números de 0 a 4 para hacer un arreglo igual a [0, 1, 2, 3, 4].
Nota que i empieza en 0.

const ourArray = [];
let i = 0;

while (i < 5) {
  ourArray.push(i);
  i++;
}

En cambio, tienes que agregar los números de 5 a 0 (inclusivo) en orden descendente en el desafío, es decir, el arreglo debe ser igual a [5, 4, 3, 2, 1, 0].

La estructura del código debe ser similar, pero empezar en 5.