To learn it , you gotta 'do' it


#1


no = 0; 
var getToDaChoppa = function(){
 do {
     console.log ( " hiii!" )
     }
     while (no < 1) {
         console.log ( " lol k ");
         no++
    // Write your do/while loop here!  
}
}
getToDaChoppa();



How is it an infinite loop? how to fix it?


#2

Got it ! ■■■■ that was a silly mistake

no = 0;
var getToDaChoppa = function(no){
do {
console.log ( " hiii!" )
}
while (no < 1) {
console.log ( " lol k ");
no++
// Write your do/while loop here!
}
}
getToDaChoppa();

This is the right code


#3

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