4. Brevity is the soul of programming


#1

var bool = true;

while(bool = true){
console.log("Less is more!");
bool = false;
}

This is not an infinite loop right? Because whenever I press "Save & Submit Code" my browser crashes! I need help


#2

@muratdiken01
Remember an = is for assigning value while === is for comparing values. Here's your code:

This is not a comparison. You assigned a value to bool.