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

Tell us what’s happening:

Can someone look over this and tell me what I am doing wrong.
this is the building a role-playing game-step 4.

Your code so far

XP:0
Health:100
Gold:50

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

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

Wrap the numbers `0` , `100` , and `50` in `span` elements.

Wrap those new **`span` elements in** ------> `strong` elements. 

Then give your new `span` elements `id` values of `xpText` , `healthText` , and `goldText` , respectively.

As shown below: 
For the first line make sure to put the id value xpText to the placeHolder and do the same thing for the last two span classes for 'healthText' and 'goldText'


EX.

<span class="stat">XP: <strong><span id="placeHolder">0</span></strong></span>
2 Likes

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