While loop screen is not responsive



I don't get any message. The system just becomes unresponsive. I've killed the screen and come back several times but can't get past this page

var understand = true;

while( understand = true ){
	console.log("I'm learning while loops!");
	understand = false;


you have an infinity loop, don't run this

a single equal sign means assign, so here:

while( understand = true )

you assign a value of true to understand, you should check if understand equals true


Thanks. I just read a similar post and understand that I should have while ( understand === true)


A post was split to a new topic: While loop question