var understand = true;
console.log("I'm learning while loops!");
I don't understand how this while loop loops... What is it looping through - just the condition of true? This can't be a loop unless it also takes into the possibility of generating a "false" condition.
Could it be that this example is just a very ineffective use of demonstrating a while loop?
if I wanted to print "I'm learning while loops!", i could i have just typed, "console.log("I'm learning while loops!");