JavaScript Algorithms and Data Structure(Beta)- Building a Role Playing Game-Step 55

Give your empty button text array three string elements. Use the three strings being assigned to the button innerText properties in the goTown function. Remember that array values are separated by commas.

It tells me this here is my code

const locations = [
{
name: “town square”,
“button text”: [“Go to store”, “Go to cave”, “Fight dragon”]
}
];
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-javascript-by-building-a-role-playing-game/step-55

someone help this is my first java challenge I am confused

Please post a link to the Step

i added a link to the step but it is not directly letting me create a help request from that step, their is no help button at bottom.

HI @Ismail8

Your code passes.
Reset the step and try again. If that doesn’t work, refresh the page, disable dark mode, disable ad blockers. Or, use another browser.
If the above steps do not work, you may need to restart the computer.

Happy coding

i did restart nothing works

nvm it worked it was just bugged

2 Likes

hello, i have literally the same problem the only different thing is that even after doing all the things you just said it just doesn’t work, it doesn’t even tell me if it’s right or wrong.
i don’t know what to do

Hi @andrella98760

See if there are any errors in the console log. If there is a problem with the syntax, an error message may not appear.

For next time, please create your own post so the forum can assist.

Happy coding

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