Learn Basic JavaScript by Building a Role Playing Game - Step 136 LARGE BUG

Tell us what’s happening:

I found that this step was once previously fixed. However in the rewriting of the lesson a mistake was made. Instead of being able to simply write, “You die.” the lesson considers this an error and instead makes you write, “You die. :skull_and_crossbones:”. This is not a major issue for me but instead a shoutout to the amazing team behind this website to notice. Thanks freeCodeCamp!

Your code so far

Code:
{
name: “lose”,
“button text”: [“REPLAY?”, “REPLAY?”,“REPLAY?”],
“button functions”: [restart, restart, restart],
text: “You die.”
},

Error mesage:
Your sixth locations value should have a text property with the value "You die. ☠" .

Challenge Information:

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

I don’t understand what you think is an error or bug?

1 Like

It doesn’t show up as the symbol when you die because it is updating the text using innerText which doesn’t work.

It would work if it was using innerHTML

Yeah, sorry this is late.
I didn’t understand that that was the emoji at the time (I am still pretty new to coding.)
Sorry!