Posts by Boko Moko • 11 points
1 post
-
-1
votes2
answers86
viewsA: Doubt with array and functions
Another alternative is to use foreach instead of . map() var x = ["hehe", "hoho", "haha", "hihi", "huhu"]; x.forEach( (elemento, indice) => { x[indice] = "$"+elemento } ) the advantage of using…