Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

Tell us what’s happening:

let character = ‘Hello’;
let count = 8;
let rows = [console. log(“Naomi”), “Quincy”, “CamperChan”];
Hello, what is wrong with my code? Why doesn’t it pass? Please, help me.

Your code so far


// User Editable Region

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



// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Introductory JavaScript by Building a Pyramid Generator - Step 20

The console log is always a separate line of code. Remove it from the array and put it below.

1 Like

Thanks, it’s a real solution of the question.