Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

I’m currently having trouble with this one. I’ve changed the 3rd array as asked, I’ve also console logged the changed array. And then I’ve printed rows as asked but still having an error message. What have I done wrong?

Your code so far

let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "10"];
console.log(rows[0]);

// User Editable Region

console.log(rows[2]);
print(rows);

// User Editable Region

Your browser information:

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

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

you need to write a new line that changes the 3rd element of the array as explained in the step. Reset the step to restore the original array, and do not change code outside the highlighted area

Hi there!

In JavaScript, there is no native print() function for outputting content to the console or browser directly.