10/11 Halp!


#1

I'm really not sure what is wrong here. It keeps getting unexpected token

var getToDaChoppa = function(){
var predator = false;
do{
console.log("Get to ze Choppa")
};
while(predator = true);
}

getToDaChoppa(predator);


#2

This semi colon stops the function, so I believe you should take that semi colon out. Also, in you getToDaChoppa...

You do not have to write predator in there. Taking out predator will print "Get to ze Choppa".


#3

Also this sets predator to be true which has a value of true and therefor leads to an infinite loop. Better compare it to true by == or === or just use predator


#4

Ah thank that the infinite really confused me.