Tell us what’s happening:
Update the third element of your rows array to be the number 10. Then print the rows array to your console.
let character = ‘Hello’;
let count = 8;
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log(rows[0]);
rows [2] = 10;
console.log(rows);// print [ ‘Naomi’, ‘Quincy’, [10] ]
what is wrong with this please help… it is a data structure
Your code so far
let character = 'Hello';
let count = 8;
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(rows[0]);
// User Editable Region
rows [2] = 10;
console.log(rows);// print [ 'Naomi', 'Quincy', [10] ]
// 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
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 21