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

Tell us what’s happening:

The HTML element that shows the monster’s stats has been hidden with CSS. Display the monsterStats element by updating the display property of the style property to block. For example, updating the first property of the name property of user would look like:

user.name.first = "Naomi";

I am really struggling to understand how I would set the display to block

Your code so far


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.

function goFight() {
  monsterHealth = monsters[fighting].health;
  monsterStats.style.display = "display block";

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

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

Welcome @taylorkaser42 !

Remove display before the block, and it will pass for you.

Wishing you more good progress.

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