Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Tell us what’s happening:

The console states I must have a second console.log statement, this is there but still outputting an error. I have tried defining let rows but that produces a second error where this has already been stated.

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);
rows[2] = 10;
console.log(rows);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 21

Hi there!

The above code you added to the challenge step is not asked to add in the instructions.

great thank you it worked:)

1 Like