Learn Basic JavaScript by Building a Role Playing Game - Step 54

Tell us what’s happening:

Describe your issue in detail here.

Step 54

Just like array values, object properties are separated by a comma. Add a comma after your name property and add a button text property with the value of an empty array.

Note that, because the property name has more than one word, you’ll need to surround it in quotes.

Please someone help, I don’t really understand this step.

Your code so far

const locations = [
{
name: “town square”,

}
];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 54

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Hi @geloxs19

This step wants you to add another object property to the locations array.

Use the name property as a guide to structure the code.
For the new property , since the key has a space separating two words, the code will need to nest them inside quote marks.

Happy coding

1 Like

thanks teller … finally I got it …

1 Like

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