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?
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.