Lesson 10. Good example of Do/While Loop


#1

Hey everyone,

I was really struggling with this one, so once I was able to conquer it, I thought it would be nice to share to help others. I know at least for me ifI am not understanding it, seeing a resolution, helps me understand where I was going wrong.

var getToDaChoppa = function(count){
do{
console.log("I'm looping until we have looped " + count + " more times!");
count--;
}
while (count > 0 );
};

getToDaChoppa(5);


#2

Thank u so much!! I was stuck and couldn't get it right no matter how much I tried