Learn Introductory JavaScript by Building a Pyramid Generator - Step 23

Tell us what’s happening:

I can’t find where the error is although I have done as told

Your code so far



// User Editable Region

let cities = ["London", "New york", "Mumbai"];
console.log(cities);
cities[cities.length - 1] = "Mexico City"
console.log(cities);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 23

the error is here, remember that capitalization matters

Thank you it finally worked

1 Like

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