0001 - Do While Loop


    do {
      code executed
    }
    while (condition);
    /*Example:*/
    do {
      text += "We going to: " + i;
      i++;
    }
    while (i < 100); 

0002 - For Loop


    for (statement 1; statement 2; statement 3) {
      code executed
    }
    /*Example:*/
    for (i = 0; i < 20; i++) {
      text += "We going to: " + i + " not further.";
    }

0003 - While Loop


    while (condition) {
        code executed
    }
    /*Example:*/
    while (i < 100) {
      text += "We going to: " + i;
    i++;
    }

0004 - if -> else


    if (condition) {
    	code executed true;
    } else { 
    	code executed false;
    }
    /*Example:*/
    if (Age > 66) {
    	message = "Enjoy, you are retired!";
    } else {
    	message = "Enjoy, you have a job!";
    } 

0005 - switch with break


    switch(expression) {
     case x:
        code executed
        break;
     case x:
        code executed
        break;
     default:
        code executed
     }
    /*Example:*/
    switch (Age) {
     case 25:
       	price = 1;
       	break;
     case 50:
       	price = 2;
       	break;
     case 75:
       	price = 3;
       	break;
    }

0006 - Array and access to items


    var arrayname = [item1, item2, item3];       
        code executed
     }
    /*Example:*/
    var Beers = [
    "Large",
    "Medium",
    "Small"
    ];
    /*Access item:*/
    document.getElementById("BeerVolume").innerHTML = Beers[0];  
    }

Not available yet.

Not available yet.