first comit
This commit is contained in:
7
corrections/27-tableau-chainage-methodes.js
Normal file
7
corrections/27-tableau-chainage-methodes.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const nombres = [5, 12, 8, 20, 15, 9];
|
||||
|
||||
const resultat = nombres
|
||||
.filter(n => n > 10) // Étape 1 : [12, 20, 15]
|
||||
.map(n => n * 3); // Étape 2 : [36, 60, 45]
|
||||
|
||||
console.log(resultat);
|
||||
Reference in New Issue
Block a user