View on GitHub

learning-journal

this site is for 102d9 class

Comparison Operators :

Evaluation conditions :

Logical Operators :

Loops :

it check a condition if it returns true a code block will run and the condition will be checked until it returns false.

Types of loops :

for (var i = 0; i < 10; i++) {

}


var i = l ; var msg = ' ' ; 
while (i < 10) {
     msg += i + ' x 5 = ' + (i * 5) + '<br I>'; i++;
 }
document.getEl ementByid( ' answer') . innerHTML = msg;