1var i=0;
2for (i=0;i<=6;i++){
3document.write("Le nombre est : " + i);
4document.write("<br />");
5}
1for (let step = 0; step < 5; step++) {
2 // Runs 5 times, with values of step 0 through 4.
3 console.log('Walking east one step');
4}
5
1let panier = ['fraise', 'banane', 'poire'];
2
3for (const fruit in panier) {
4 console.log(panier[fruit]);
5}
1let panier = ['fraise', 'banane', 'poire'];
2
3for (const fruit of panier) {
4 // console.log(fruit);
5 console.log(panier.indexOf(fruit));
6}
7