Created
May 12, 2020 20:42
-
-
Save guilhermewebdev/2e8a5c576a74e3d2dc78c7c5730d4805 to your computer and use it in GitHub Desktop.
Exemplo do uso de parâmetros em funções JavaScript
This file contains hidden or 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
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