Learn Introductory JavaScript by Building a Pyramid Generator - Step 19

Tell us what’s happening:

I’m not getting the answer on the forum and it quite frustrating

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];

// User Editable Region

rows[rows.lenght -1];
console.log([rows.length -1]);


// User Editable Region

console.log(rows);

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 19

Hi and Welcome to the forum,
You don’t need to console log anything here, so remove that part.
The original code given to you is:
rows[2] = 10;
You just have to replace 2 with rows.length-1 which is also given to you in the instructions.
Hope this helps.

change this
rows[2] = 10

with this
rows[rows.length -1];

and, if it’s still doesn’t work you may have to delete this console.log(rows[0]);