Skip to content

Instantly share code, notes, and snippets.

@glaucia86
Created March 31, 2018 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glaucia86/bae528a96f8e483f4062fbff235ba02e to your computer and use it in GitHub Desktop.
Save glaucia86/bae528a96f8e483f4062fbff235ba02e to your computer and use it in GitHub Desktop.
/**
*
* 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