para em JavaScript
for (let i = start; i < end; i++) {
}
hateschoollovecoding
for (let i = start; i < end; i++) {
}
Serial.println(value);
/*
for (statement1; statement2; statement3) {
INSERT CODE
statement1 is executed before for loop starts
statement2 is the condition
statement3 is executed after every loop
}
*/
for (i = 0; i < 5; i++) {
console.log(i);
}
//first type
for(let i; i< number; i++){
//do stuff
//you can break
break
}
//2nd type
const colors = ["red","green","blue","primary colors"]
colors.forEach((color) =>{
//do stuff
//But you can't breack out of the loop
})
//3rd type might not be considered as a loop
colors.map((color) =>{//do stuff
//no bracking})
i = 20
for (var n = 0;n == i;n++){
console.log("20 Times");
}
for(const key in object){
// do stuff
}
// goes through the keys of an object