Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

my code comes up correct in the console but doesn’t pass. am I missing something or is this class just designed to keep me stuck?

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/16.6.1 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

You have an extra space in your “New York” string (before the N). Everything else looks good though!

1 Like