Tell us what’s happening:
Step 87
The equality operator == is used to check if two values are equal. To compare two values, you’d use a statement like value == 8.
Add an if statement to your loop. The statement should check if done is equal to count using the equality operator.
// User Editable Region
while (continueLoop){
if (done == count){
}
done++;
}
// 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/127.0.0.0 Safari/537.36
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 87
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
Hi there!
You followed the instructions. But you need to add the if statement on correct place. Reset the challenge step and try again.
i am having error after putting if statement,
i have done but i don’t see where exactly there is problem?
Please share your udpated code
this is it, they are telling me, if statement is not in loop, and hence i do not see where there is error
Why did you choose to put the if
statement before the done++
line?
Instructions say “Add an if
statement”. It’s not so precise but usually “add” would be after what’s already there.
1 Like
Please post your actual code instead of a picture.
One topic per step please!