Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

I haven’t made any spelling errors. What am I doing wrong?
Is it because it also prints the rows variable?

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

console.log(rows);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Welcome to the forum @ukandi

Try removing the white space.

Happy coding