What exactly do they mean by "the condition" in the instructions?


#1

What exactly do they mean by "the condition" in the instructions?


#2

The condition is the state things have to be in for something to happen.
for example:

while (1 < 2) {
console.log("Infinite loop!");
}

In the code above, the condition is (1 < 2) which is checking that 1 is less than 2, which is true. This results in an infinite loop because 1 is always less than 2.

PS: the code inside the while loop will always get run if the loop's condition is true, but will never run when it is false.