Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

i am missing something i cannot figure out exactly what i know its not much for my code to pass

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["New York".length - 1] =["Mexico City"];
console.log(cities) //print["London", "New York", "Mexico City"];

// User Editable Region

console.log(rows);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

why are you taking "New Yorn".length here?

when i put in a number it still doesnt pass

Go back to step 18 to review these steps that teach about arrays please

thank you for answering

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