Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Tell us what’s happening:

Hello,
I keep having problems with the syntax but this time I think the code is correct. Is it me who doesn’t understand?

Your code so far

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

// User Editable Region

let array = [1, 2, 3];
array[2] = 10;
console.log (array[2]);

// User Editable Region

Your browser information:

Lo user agent è: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 18

Sorry, I didn’t understand what the exercise was asking for. :person_facepalming:t2:
I solved :v:t2:

Hi @aleram89

You are entering the array from the instruction, which was given as an example.

The instructions are to modify the rows array using bracket notation.

Then console log the rows array.

Happy coding

Thanks for answer me😊…
we’re wrong because I was focusing on the example.

1 Like