Also return false in exercise 3. For or while


#1

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

the code works fine because I didn't do anything fancy. The for loop runs fine, but when the while loop runs, it returns the console.log statement and the word false.

// Write your loop below!
for (var i = 0; i<6; i++){
    console.log(i);
}

var hello = true
while(hello){
    console.log("yes");
    hello=false;
}


#2

That is just the codecademy console printing the last thing, can be useful but also confusing