Don't know why this doesn't work


#1


Lesson 10 - The following code locks up every time. I've tried defining blah inside and outside the function with the same results. Best part is that if I remove the do portion of the code, it works which makes me think there's something wrong there, but I don't know why.


var getToDaChoppa = function(){
    var blah = 0
  // Write your do/while loop here!
    do {
        console.log("Sully! You're a funny guy! I'll kill you last!");
    }
    while (blah < 2) {
        console.log("I lied");
        blah++;
    }
};

getToDaChoppa();


#2

If you are wondering why nobody has answered yet, consider the immaturity in your post. Nobody is taking you seriously. Think about it. When we do not adhere to the instructions but go it on our own (which is foolhardy, btw) then we can expect things to go afoul. Suggest start this lesson all over from scratch and follow the instructions to the letter. Be sure to read the lesson text in this and the previous lessons before moving on.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.