Tell us what’s happening:
there is an error and I think my code is right, and its actually outputting the expected output but its stuck
Your code so far
// User Editable Region
let rows = ["Naomi", "Quincy", "CamperChan"];
console.log(rows);
rows[2] = 10;
console.log(rows);
// 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/132.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 21
ILM
February 5, 2025, 10:28am
2
it looks like you changed or removed the first 4 lines of the code, you should not have changed/removed them. Reset the step, and try to not change those first 4 lines, and try again to add the code for this step
That was me trying to get the code to run, but unfortunately those first 4 lines had no effect, the error is still there
ILM
February 5, 2025, 10:30am
4
please share here the updated code
let character = ‘Hello’;
let count = 8;
let rows = [“Naomi”, “Quincy”, “CamperChan”];
console.log(rows);
rows[2] = 10;
console.log(rows);
ILM
February 5, 2025, 10:32am
6
josephkinuthianjenga:
console.log(rows);
this is still changed, you should not change the first 4 lines at all
I remember deleting those 2 lines only
Now what do I do ?
ILM
February 5, 2025, 10:34am
8
you can always reset the step to restore the original code
Thank youu, After resetting everything worked out fine…