10/11 Dont understand! Help!


#1

var getToDaChoppa = function(){

// Write your do/while loop here!
var timo = true
do{
console.log("Noob " + timo + "!")
timo = false
}
while(timo)

};

getToDaChoppa();


#2

What do you don't understand? Do you get an error message is there something wrong with it?


#3

Nope , I just wrote it but i did not understand what the program means?


#4

Well... it's a do/while loop in a function. You had a lesson on how function work and if you want to know how do/while loops work you can have a look at this:


So I would need a bit more information.


#5

var getToDaChoppa = function(){

// Write your do/while loop here!
var timo = true
do{
console.log("Noob " + timo + "!")
timo = false
}
while(timo)

};

getToDaChoppa();

// Your loop should print a string of your choice to the editor one time. Remember: make sure you give your while condition a way to become false, or it'll loop forever! FALSE, FALSE, FALSE! ( Do not use TRUE!
var getToDaChoppa = function(){ // you need to close here,}
//will not printout //console.log("I hate ice cream " + put condition + "!");

var getToDaChoppa = false;
do {
console.log("I hate ice cream " + getToDaChoppa + "!");
} while (getToDaChoppa); // look back at 9 (9/11)
// getToDaChoppa should be in your code 4 times!