1 Introduction to While loops


#1


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


Save & Submit crashes the page


 var understand = true;

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


#2

You are not evaluating whether understand is true, (==), but trying to assign understand to true. :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.