Skip to content

Instantly share code, notes, and snippets.

@jarbaspsf
Created February 3, 2018 00:42
Show Gist options
  • Save jarbaspsf/2fe41d2999624755f9b57b91cc501b17 to your computer and use it in GitHub Desktop.
Save jarbaspsf/2fe41d2999624755f9b57b91cc501b17 to your computer and use it in GitHub Desktop.
let numeros = [1,2,3,4]
let soma = numeros.reduce((valorAnterior, valorAtual) => valorAnterior + valorAtual, 30);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment