first comit
This commit is contained in:
5
corrections/23-tableau-methode-map.js
Normal file
5
corrections/23-tableau-methode-map.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const mots = ["javascript", "est", "vraiment", "puissant"];
|
||||
|
||||
const longueurs = mots.map(mot => mot.length);
|
||||
|
||||
console.log(longueurs); // Affiche [10, 3, 8, 8]
|
||||
Reference in New Issue
Block a user