10/11, I have a problem


#1

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

what is wrong here?


#2
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.


#3

Thank you so much! I was so confused.