My check your code button does not work

I was doing steps 57 and 58 for the new Javascript course, still not happy with this change as I was doing the legacy Javascript. I know for certain I’ve written the correct code but the check your code button does not work, this is usually helpful as I can see the mistake and write the correct code. Please fix this.

If you have completed most of the old courses and already feel confident, you don’t have to start over the new ones.

To earn the certification, you only need to complete the 5 projects that have a blue label saying “Certification Project”.

For the issue of the check your code button not working, could you try:

  • Checking your internet connection
  • Clearing the cache
  • Using a different browser
  • Using a different device

"I know for certain I’ve written the correct code "

“I’ve written the code correctly as the instructions ask.”

You shouldn’t assume this, it’s not helping you solve the problem. You are learning to code, have some humility. Let’s see your code

I added a comma, but still the check your code button was not giving me errors despite my assumption. Moving on.

const locations = [
        name: "town square",
        "button text": ["Go to store", "Go to cave", "Fight dragon"],
        "button functions": [goStore, goCave, fightDragon],

“Try opening the console, it will give you more information about analyzing your code.”

If you open the console it was pointing to that line. That can give you a clue of where to look.

You’re learning now, but when you are writing code on your own, you will only have the console (and other tools) to analyze your code. Good to get to know how to use the console, an invaluable resource that you should constantly have open.