While loop screen is not responsive


#1


https://www.codecademy.com/courses/javascript-beginner-en-ASGIv/0/2?curriculum_id=506324b3a7dffd00020bf661


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;
}


#2

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


#3

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


#4

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


#5