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

Hello, i have been stuck on this step for a long time. Couldn’t get past it for days. pls can some help look into it.

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

freecodecamp

Remember you don’t want to overwrite the text.innerText with the second line - you want to add the second line to the text.innerText

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.