Tell us what’s happening:
Hi I think I’m doing all correctly but It’s dropping an error.
This is an error:
Sorry, your code does not pass. You’re getting there.
You should add the new line escape character \n to your ". Here are the random numbers: " string.
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 166
You accidentally added an extra space character between the period and the word “Here”. The tests don’t like unexpected changes, so be sure not to add anything that you aren’t asked to add.
Also, the tests apparently don’t want a space between the colon and the new line you are adding, so get rid of that as well. In the original code there is no space after the colon, so you added something extra that wasn’t asked for. But the hint you are getting does make it seem like there should be a space there, so I can understand the confusion.
1 Like
lredy done fine thanks see u.
1 Like
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.