javasript for of loop code example
Example 1: for of js
let panier = ['fraise', 'banane', 'poire'];
for (const fruit of panier) {
// console.log(fruit);
console.log(panier.indexOf(fruit));
}
Example 2: js for of loop
for (variabile of oggettoIterabile) {
istruzioni
}