I’ve attempted every solution given here and looked online. Nothing seems to be working. I’ve tried every value available at this point. my code is below I left the space for the const value blank as I could never come to a conclusion. If any other errors are present please feel free to state them as well
for (let i = 0; i < count; i = i + 1) {
rows.push(i)
}
let result = ""
for (const of rows){
}
console.log(result)
just leave it. you’re being obtuse and I don’t have time to deal with you. I’ll keep looking on my own because either you know or you don’t. if you have to figure it out too then no help to me. thanks anyway
I’m not being obtuse. We cannot write the solution for you, so we really actually need the code you tried and a link to the step! If you provide the link and the full code you tried, its actually pretty easy for us to help you quickly.
None of this is what the step asked for, so it has to go.
Original code:
for (let i = 0; i < count; i = i + 1) {
}
Instructions:
Inside the body of the loop, print the value of the i iterator and see what happens.
The “body of the loop” is the part with the {}
In there you have
But that’s not “print the value of the i iterator”. push doesn’t print anything. You need to use JavaScript’s function for printing to the console, and tell it to print the value of i.
This is why providing the link to the Step is important! We don’t have all of the steps memorized, so I had no way of knowing what was going on without wasting both of our time hunting down the link.