Skip to content

Instantly share code, notes, and snippets.

@guilhermewebdev
Created May 12, 2020 20:42
Show Gist options
  • Save guilhermewebdev/2e8a5c576a74e3d2dc78c7c5730d4805 to your computer and use it in GitHub Desktop.
Save guilhermewebdev/2e8a5c576a74e3d2dc78c7c5730d4805 to your computer and use it in GitHub Desktop.
Exemplo do uso de parâmetros em funções JavaScript
function soma(a, b){
return a + b
}
function mostraSoma(a, b){
console.log(a + b)
}
let somado = soma(5, 4)
console.log(somado)
# Saída: 9
mostraSoma(10, 5)
# Saída: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment