10. To learn it you gotta do it


#1

var count = 1
var getToDaChoppa = function(){
// Write your do/while loop here!
do{(count < 2){
console.log("Hey guys i like to draw art");
count++;
}
};
}

getToDaChoppa();


#2

Where is your while Loop? The instruction says:

Write a do/while loop inside the function.


#3

I already figured it out
Thanks anyway


#4

getToDaChoppa = function(){
do {
console.log("i just want it so bad thats all");
;
var
}
while(getToDaChoppa);

};

getToDaChoppa();
somebody help me
i dont know what to do


#5

Is this supposed to be correct? I don't understand it.
Could someone break this down for Me? Thanks.


#6

Not really.
First of all you got that function

var getToDaChoppa = function(){
...
}
getToDaChoppa();

that is just there to run your code when you want it to run by the getToDaChoppa(); statement. There was a whole lesson about it and if this is new you might want to review this one because for this exercise it is just a framework.
The thing you should do here is just to add a do while loop where I placed ... no need to bother with the function in any way. And here:


I've wrote a post about all kind of loops. in this case it should just a be loop that goes once and prints a string to the console. Hope this helps, if not feel free to ask.


#7

simple declare a variable count and store a string in it then use the do while....
var getToDaChoppa = function(){
var count="saqib";
do {
console.log("my name is" +" "+count);
}
while(false)
};

getToDaChoppa();