Day 37

Some notes I put together on "for" loops
#CodingPhase #TheCodingWay #365CodingPhaseChallenge

**********

//Loops
// for loops
// for(set a variable; set the condition; increment) {
// do something
// }

for (var i = 0; i < 10; i++) {
console.log(i);
}

var w = 0;
while(w < 10) {
console.log(w);
w++;
}

var digits = [55,84,95,221,2,8,665,35,44];

digits.forEach(function(number){
console.log(number);
});
//End Loops

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2