1var i=0;
2while (i < 10) {
3 console.log(i);
4 i++;
5}
6//Alternatively, You could break out of a loop like so:
7var i=0;
8while(true){
9 i++;
10 if(i===3){
11 break;
12 }
13}
1let panier = ['fraise', 'banane', 'poire'];
2
3for (const fruit in panier) {
4 console.log(panier[fruit]);
5}