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

Tell us what’s happening:

Your code so far

I followed the pattern but the code isn’t passing.


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.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

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


Hey there,

I don’t know the exact issue that you’re facing, but however the solutions code for this step looks something like this:

Mod edit: removed

Happy Coding :keyboard: !

1 Like

Hello @GKA
It is nice that you solve the problem.

Forum rules are not to provide direct solutions to the post.

Rather we are to focus on the posted problem and provide guidance to the person.

This allows them to learn to code the step for when they need to use it later on.

Happy coding and Happy New Year!


Hey, sorry I didn’t know that, my bad.
I will make sure that it doesn’t happen again.

Happy New Year :tada:and Happy Coding :keyboard: !

No problem.

We all learn together.

I had to learn the same way as you just now.

Only I was made aware of it by a moderator.

You may wish to remove the solution part, or blur it, to avoid it being removed.

Happy coding and all the best in 2024.

I have removed the code from your post. As mentioned before we ask that you not provide code solutions to pass the challenges.

1 Like

If you are still facing issues please post all your When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').


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