Extra "false" printed when running while loop


#1


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

Code passes the test, but in the display box an extra "false" is printed after the "I'm learning while loops" string.

(What it looks like)

I'm learning while loops!
false

Any way to avoid that? Is it a big deal? Thank you


understand = true;

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


#2

codecademy print the result of your last expression, it's not something your code does, as you can verify by adding a print at the very end of your code - anything printing after that wouldn't be from your code.

yes, ignore it.