Bug in Building a Role Playing Game - Step 51

Hi,
i think i got a little bug, that probably shouldn’t pop up, while trying to completing Step 51 in the Building a Role Playing Game challenge.
I’m using “Opera One(Version: 106.0.4998.66)” as my browser and get a bug in the preview window, when I declare the variable wrong,

If I set the new variable that should be

const locations = [];

instead as

var location = [];

or

const location = [];

the preview window of the role playing game changes and displays instead the freecodecamp code window again. Additionally the “Check your Code” button doesn’t work.
I know that my mistake is the missing “s” at the end of the variable name, but this “bug” should probably not happen?

Is that an unknown bug I should report on github?

1 Like

check the spelling of your variable

if the check your code button isn’t working, that means there’s an error with your javascript code, usually a syntax error such as semicolon or something

I know that my mistake is the missing “s” at the end of the variable name and i know how to fix it, but i was just wondering if this “bug” should be possible in the code editor.

There is an open discussion about it on github

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