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

Tell us what’s happening:

At the end of the string, before the final quote, insert the new line escape character \n .

Your code so far

text.innerText = "You picked " + guess + “\n. Here are the random numbers:\”;

Welcome to the forum @danielberhanuberhe53

text.innerText = "You picked " + guess + “\n. Here are the random numbers:\”;

The escaped character needs to be placed at the end of the string.
Please reset the step to restore the original code, then insert the new line escape character.

Happy coding

2 Likes
text.innerText = "You picked " + guess + ". Here are the random numbers:\n";

You need to place the escape character just before the end of the quote, like I did above.

1 Like