Saturday, 9 August 2014

To learn it, you gotta 'do' it

Question 10/11

Write a do/while loop inside the function we've created for you, getToDaChoppa. The function should log a string of your choice to the console. do it now!

var getToDaChoppa = function(){
  // Write your do/while loop here!
  do{
      getToDaChoppa = false;
      console.log ("Please mention all above");
      }while(getToDaChoppa)
};

getToDaChoppa();

Tuesday, 5 August 2014

Tutorial 3/11
== Introduction to while loops ==
A fellow of infinite loops

Solve:
understand = true;

while(understand){
    console.log("I'm learning while loops!");
    //Change the value of 'understand' here!
    understand = false;
}