JavaScript -Schleife
for ([initialExpression]; [conditionExpression]; [incrementExpression])
statement
Larry Adah
for ([initialExpression]; [conditionExpression]; [incrementExpression])
statement
<template>
<div>
<b-form-checkbox
id="checkbox-1"
v-model="status"
name="checkbox-1"
value="accepted"
unchecked-value="not_accepted"
>
I accept the terms and use
</b-form-checkbox>
<div>State: <strong>{{ status }}</strong></div>
</div>
</template>
<script>
export default {
data() {
return {
status: 'not_accepted'
}
}
}
</script>
for (var i =0;i<1;i++){
}
var arr = [1, 2, 3, 4, 5];
arr.slice().reverse()
.forEach(function(item) {
console.log(item);
});
Serial.println(value);
for (let step = 0; step < 5; step++) {
// Runs 5 times, with values of step 0 through 4.
console.log('Walking east one step');
}
for - loops through a block of code a number of times
for/in - loops through the properties of an object
for/of - loops through the values of an iterable object
while - loops through a block of code while a specified condition is true
do/while - also loops through a block of code while a specified condition is true
for (let i = 0; i < cars.length; i++) {
text += cars[i] + "<br>";
}
for ([initialExpression]; [conditionExpression]; [incrementExpression])
statement
for ([initialExpression]; [conditionExpression]; [incrementExpression])
statement
for ([initialExpression]; [conditionExpression]; [incrementExpression])
statement