Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

I even read the solution and cross-checked it but i found the solution to be exactly mine but the system says the code does not pass but i get the exact outcome from the console i dont know how to go through this

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];

// 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 (Windows NT 10.0; Win64; x64) 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

hi and welcome to the forum!
Your code is perfect.
You just need to spell city with a capital C

1 Like

:face_with_hand_over_mouth: sorry that was a minor mistake of mine and thanks for your time :grin:

1 Like