I am learning javascript and I cant understand why the loop stop if there is not any part of the loop that says "false" (that means the loop have to end). Math.floor(); returns the high integer value, and when is used with a (Math.random() * 2) it returns 1 or 0 . So Can anybody help me to understand why this? http://www.webdeveloper.com/forum/im...s/confused.gif

var moneda = Math.floor(Math.random() * 2);
while(moneda){
console.log("ˇCara! Lanzando de nuevo...");
var moneda = Math.floor(Math.random() * 2);
}
console.log("ˇSello! Lanzamiento concluido.");