Learn-basic-javascript-by-building-a-role-playing-game - Step 118

I did all a could but I’m not finding the way out.
Now, set the innerText property of monsterName to be the name property of the current monster. Do the same for monsterHealthText and the health property.

Can you post the section of code that’s not working?

do this:

function goFight() {
update(locations[3]);
monsterHealth = monsters[fighting].health;
monsterStats.style.display = “block”;
monsterName.innerText = monsters[fighting].name;
monsterHealthText.innerText = monsterHealth;
}

this will help:

function attack() {
text.innerText = “The " + monsters[fighting].name + " attacks.”;
}

I think it’s wrong,
Using the + operator to combine strings with variable content to form a complete message. This is a fundamental string operation used to dynamically create text content.