Learn Basic JavaScript by Building a Role Playing Game - Step 165

Tell us what’s happening:

what is wrong here ?

function pick(guess) {
  let numbers = [];
  while (numbers.length < 10) {
    numbers.push(Math.floor(Math.random() * 11));
    text.innerText+="You picked "+guess+". Here are the random numbers:";
  }

}

Console Output:

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 165

Do you really want to add on to what was already there?

1 Like

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