javascript for in fo of code example
Example 1: forin js
let panier = ['fraise', 'banane', 'poire'];
for (const fruit in panier) {
console.log(panier[fruit]);
}
Example 2: for javascipt
for (let i = 0; i < 9; i++) {
str = str + i;
}
let panier = ['fraise', 'banane', 'poire'];
for (const fruit in panier) {
console.log(panier[fruit]);
}
for (let i = 0; i < 9; i++) {
str = str + i;
}