I Got It Right, but the Console's Only Logging "0."


#1

Here's my code:
//
understand = 0;

while(understand=0){
console.log("I'm learning while loops!");
//Change the value of 'understand' here!
understand = 1
}
//
Instead of logging "I'm learning while loops" to the console, it just logs 0. I'm assuming it's because of "while(understand=0)" instead of just "while(understand)," I'm not sure. Could really use some help wrapping my brain around this. Thanks!


#2

Instead of making understand equal to 0 there, you should compare it to 0. You can use === for that.