To learn it, you gotta do it


#1

var x = true
var getToDaChoppa = function(){
do {
console.log("This is looping!");
} while(false)
};

getToDaChoppa();

why do the need the highlighted part? And how does the do while loop work?

thanks :slight_smile:


#2

What are you asking exactly?


#3

why do I need var getToDAChoppa = function() what does it do? Same with getToDaChoppa()


#4

It works either way you just need to create a function to nest the do while loop


#5

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