10/11 Halp!


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

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



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".


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


Ah thank that the infinite really confused me.