i dont understand what I’m to do here!!
I’ve tried about 3 times yet i remain confused.
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);
// 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/138.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 24
let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
let cities = ["London", "New York", "Mumbai"];
let cities[2] = "Mexico City"
console.log(cities[2]);
console.log(rows);
yes that is true.
So what do you think? Did you write 2 console.log statements as required by the instructions?
(perhaps now would be a good time to re-read those instructions?)
good you added another log, so that’s a step forward.
But when things don’t work, we need to go back and re-read the instructions again more carefully.
Try to read this one again:
After logging, change the last element of cities to the string "Mexico City" , then log the cities variable again.