Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

i tried every code to make it correct but it still says its wrong. i don’t know what to do and i looked at all the posts that were posted and none of them helped me.

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

console.log(rows);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

this works for me
Can you reset and copy the code back in to see if it works?