Infinite do while loop


#1

All I'm suppose to do is write a do/while loop inside the function they gave me, but it seems all I can do is create infinite loops. Help Please? Thanks in advance.

var getToDaChoppa = function()
{
do
{
console.log("output");
}
while(getToDaChoppa);
getToDaChoppa = false;
};

getToDaChoppa();


#2

var getToDaChoppa = function() {
do {
console.log("output");
getToDaChoppa = false;
}
while(getToDaChoppa);
};

getToDaChoppa();
There try that.


#3

perfect, that worked. thanks so much