Step 82 Your while loop should check if done and count are not equal

while (continueLoop) {
done++;
rows.push(padRow(done, count));
if (done !== count) {
continueLoop = false;
}
}

It has been so much frustrating I don’t know what to say here.
Above is my code I can clearly see with wide open EYE that it is correct and so do you people. Now in order to submit my solution it says the same silly ass Error Why???

I have searched and try to find out may be I am wrong but Na.!

Error : Sorry, your code does not pass. Keep trying.
Your while loop should check if done and count are not equal.

If someone can help I would personally salute. If not then I am out of here forever.

Update your while loop condition to check if done is not equal to count .

Are you doing that here?

while (continueLoop)
1 Like

Update my while loop condition right ?
So I updated that already and that 's why I pasted my updated code so everyone could have better idea see:

while (continueLoop) {
done++;
rows.push(padRow(done, count));
if (done !== count) { // See this line here there is not equal sign ( ! )
continueLoop = false;
}
}

You are created an if statement, instead not updated the while loop condition. Double check your code.

2 Likes

Hmm East or West You are the Best.
Hey Man [hasanzaib1389] Thank you so much for your HELP I will salute to you even if you are behind the screen. :saluting_face::saluting_face::saluting_face: :fist:t2:

So I was doing it wrong where is actually I had to change the WHILE LOOP CONDITION itself.

such as like this:
while(done !== count){
…rest of the code
}

2 Likes

Great job! And your most welcome. Keep it up.

1 Like