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

Tell us what’s happening:

Your code so far

I am stuck at this stage anyone to point me in the right direction


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.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

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

hey there, it seems your code wasn’t able to be imported, can you please post your code?

function attack() {
  text.innerText = "The " + monsters[fighting].name + " attacks. ";
  text.innerText += "\nYou attack it with your " + weapons[currentWeapon].name + ".";


you need a space, not a new line before “You attack”

Thanks for the help. I don’t understand why it said on a new line when you just need to add a space, this will people confuse.

on a new line in the editor