Conte-nos o que está acontecendo:
Step 162
Inside your while
loop, push a random number between 0
and 10
to the end of the numbers
array. You can create this random number with Math.floor(Math.random() * 11)
.
Seu código até o momento
function pick(guess) {
const numbers = [];
while (numbers.length < 10) {
}
}
Informações do seu navegador:
Agente de usuário: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Informações do desafio:
Aprenda JavaScript básico criando um jogo de RPG - Step 162