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


#1

So this worked, but I got rid of a lot of code that was already there. Is this best practice?
My code:

var getToDaChoppa = false
do {
console.log("Ya gotta getToDaChoppa!");}
while(getToDaChoppa);

\code that was there:\

var getToDaChoppa = function(){
console.log("Ya gotta"

};

getToDaChoppa();

do {

// The thing to do at least once!

} while(getToDaChoppa = true);


#2

We are not far enough along to concern ourselves with best practice. That is a ways off. Right now the only concern is completing the exercise as instructed. If there is code provided, then work with it, without removing any. This is not an exercise in refinement, but in basic syntax and constructs.


#3

For some reason this code crashes all my browser tabs.


#4

this bit:

do {

// The thing to do at least once!

} while(getToDaChoppa = true);

is an infinity loop since you assign true to getToDaChoppa


#5

I fixed the problem.