Tell us what’s happening:
Hello, everyone.
I’m not sure what’s wrong. I keep getting a message saying that my rows array should be empty. Please advise me.
Your code so far
let character = "";
// User Editable Region
let character = "Hello";
let count = 8;
let 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/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 30
Hello. i’m not sure but i think that is just a bug, try to reset the problem and try to solve it again. happy coding.
Hello! Thank you for the suggestion. I’ll give that a try and see if it resolves the issue. I appreciate your help. Happy coding to you too!
ILM
December 2, 2024, 8:56pm
4
you have let character
twice, that is a syntax error, so the tests don’t work
Thank you for pointing that out! That part of the code is written based on step conditions. Let me know if there’s anything else I should look into!
I tried reloading and writing it again and again, it gave an error.
I wrote the same code as above on another computer and it worked once.
I don’t understand why the above code gave an error.
Hi there!
Because reloading the page isn’t reset the challenge step and on another browser you have starts the challenge step from the beginning.
Hi! Thank you for answer!
Yes, you are right.
1 Like