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

The instructions for the step say:

At the end of the string, before the final quote, insert the new line escape character \n . This will cause the next part you add to text.innerText to appear on a new line.

and yet when you do exactly that it doesn’t pass.

you have to remove the space to make the code pass.

it just needs to be worded differently

Hi @alisdair.harden,

Please provide the code so we can take a look at it.

Post a link to the challenge step and also your code

oh rats my mistake looking at it again i must have added a space sorry. Nothing to see here just shut thread down sorry

1 Like