Created
March 31, 2018 01:35
-
-
Save glaucia86/bae528a96f8e483f4062fbff235ba02e 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
/** | |
* | |
* Arquivo: calculadora.js | |
* Author: Glaucia Lemos | |
* Description: arquivo responsável por executar as 4 operações de uma calculadora: + - * / | |
* Data: 30/03/2018 | |
* | |
*/ | |
module.exports = { | |
// Função responsável por adicionar 2 números: | |
adicionar: (num1, num2) => { | |
return num1 + num2; | |
}, | |
// Função responsável por subtrair 2 números: | |
subtrair: (num1, num2) => { | |
return num1 - num2; | |
}, | |
// Função responsável por multiplicar 2 números: | |
multiplicar: (num1, num2) => { | |
return num1 * num2; | |
}, | |
// Função responsável por dividir 2 números: | |
dividir: (num1, num2) => { | |
return num1 / num2; | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment