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

Tell us what’s happening:

I did exactly what the instructions said and even checked the validity of my code with chatgpt, yet it still says that my code is wrong.

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

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

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15

Challenge Information:

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

Welcome to the forum @surjeet.singh.ghotra

Try removing the space after the colon.

Happy coding