Tell us what’s happening:
why am i getting the following message on my code;Your eighth locations value should have a “button text” array with the strings “2”, “8”, and “Go to town square?”.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
{
name: "easter egg",
buttonText: ["2", "8", "Go to town square?"],
buttonFunctions: [pickTwo, pickEight, goTown],
text: "You find a secret game. Pick a number above.Ten numbers will be randomly chosen between 0 and 10. If the number you choose matches one of the random numbers, you win!"
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 161