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

can you plz give me the solution for bcoz i didn’t understand about it plz

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

Welcome to the forum @mahaksaxena2007

The forum discourages giving out direct solutions. Instead the community uses hints, clues, and guidance.

You have completed part of the the step.
Write similar code for the innerText property for monsterHealthText

Happy coding

okay thank you so much for helping me

1 Like