10. To learn it, you gotta 'do' it


#1

I stuck with this one, do any one know why?
Thank you so much

var dotCom = true
var getToDaChoppa = function() {
// Write your do/while loop here!
do {
console.log("do do do");
while (dotCom); {
console.log("I'm learning while loops!");
dotCom = false
};
};

getToDaChoppa();


Replace this line with your code.


#2

do while syntax:

// declare condition variable

// the do while loop
do {
  // what ever the loop is doing

} while(condition);

your code doesn't match this syntax


#3

got it, thank you so much


#4

i am impressed, most people who i give instructions on where they go wrong, immediately come back with other problems they have found (even if i already covered those), so i am impressed, well done

in a vague way, this was intended as compliment :stuck_out_tongue:


#5

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