10/11, I have a problem


var getToDaChoppa = function(){
var davros == false;
// Write your do/while loop here!
console.log("Get to da choppa! Nargh")
while(davros = true);

what is wrong here?

while(davros = true);

here you assign true to davcros where the whole statement has a value of true and therefor you created an infinite loop.
On the other hand here:

var davros == false;

you compared false to davros where you'd better assigned the value. So == and === are to compare values and = is to assign a value to a variable.


Thank you so much! I was so confused.