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

step 165
terminal keeps saying " You should set text.innerText to the string You picked . Remember that spacing matters." Ive spaced the "You picked " yet its saying its incorrect. Everything else looks about right. Just confused.

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:”;
}

}

my bad solved it

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:"
}

}

changed the “+=” into an equal sign don’t know why i did the first option. Also for the spacing added a period to the second part of the string which ended the first sentence. I also added a period and space at the start of the second string or second sentence.

2 Likes