let panier = ['fraise', 'banane', 'poire']; for (const fruit of panier) { // console.log(fruit); console.log(panier.indexOf(fruit)); }