What are some other answers for 3/11 other than "understand = false;"?"


I tried a number of different lines (such as understand=apples, and understand === apples), but they all resulted in infinite loops.


Please post your code and a link to the exercise. There are many ways to end a loop.


Remember that "=" is meant to assign variables to values. "===" is used to compare two variables or values.

As @cadecodes said, there are multiple ways to end a while loop. For example, the while loop's parameter will run when its true and will stop when its false.

var i = 0;
while (i < 10) {
    console.log("The number is " + i);

The code above will print numbers 0-9 and then stop because the parameter (i < 10) is checking for if the variable "i" is less than 10. If the while loop parameter is true, it will print the code under the while loop. If it's false, it won't run at all.

I hope this helped you a bit on how while loops work. If you are still having issues, reply with your code and any errors you are getting.