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

Tell us what’s happening:

I was just sitting here trying to code when all of a sudden I got to Step 171. I feel confident that I did it correctly because it sounded easy enough. But no, incorrect. So I keep at it because it says “Don’t give up!” and I pride myself on being a rule follower. I keep trying and now after almost 30 minutes of looking up \n and trying any possible way to do this code, I have come unto thee. Please help me code step 171 please (:

### Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

  text.innerText = "You picked " + guess + ". Here are the random numbers:\n";
  for (let i = 0; i < 10; i++) {
    text.innerText += numbers[i] \n,
  }

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

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

2 Likes

Keyword: ADD but like in a concatanate kind of way. Like a “+” kind of way. As in that took me soooooo long to figure out. But I did and I am so proud of myself for being such a brave young woman.

3 Likes

SOLUTION REMOVED
took me sooo long, but did it

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.

Sooooooooooooooooo simple “add a new line”!!