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

Wrap the numbers 0 , 100 , and 50 in span elements, and wrap those new span elements in strong elements. Then give your new span elements id values of xpText , healthText , and goldText , respectively.

   <span id="xpText">0</span>
        <span id="healthText">100</span>
        <span id="goldText">50</span></strong>
1 Like

if we take a look at step 17, you start with

        <span class="stat">XP: 0</span>
        <span class="stat">Health: 100</span>
        <span class="stat">Gold: 50</span>

where us the text XP, Health and Gold?

To wrap the numbers 0, 100, and 50 in span elements, and then wrap those span elements in strong elements with the specified id values, you can use the following HTML:

---solution removed---

This will result in the numbers 0, 100, and 50 being wrapped in span elements, and those span elements being wrapped in strong elements with the specified id values.

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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