Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

Tell us what’s happening:

this code 24 is a glitch as i have tried everything but the code is not working even i googled the code which says that my code is correct but still your console is not giving the right output

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 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 24

try using proper capitalization here

code removed by moderator try this one see if t will help

hi @Kgotso

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Sorry… I mean you can try using basic bracket notation to access and modify a specific value in an array… see if it will help