Created
May 29, 2022 20:48
-
-
Save pmatos2000/7f3737568bdb44508efba3ad8bd0a216 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vetor = [1,2,3]; | |
const vetorModificado = vetor | |
.map(elemento => { | |
console.log(elemento); | |
return elemento; | |
}) | |
.map(elemento => { | |
const novoElemento = 2 * elemento; | |
console.log(novoElemento); | |
return novoElemento; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment