Created
June 22, 2019 17:24
-
-
Save flpms/d95481206ad678f2771b7c626a30ac31 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
class OperacoesBasicas { | |
soma(numeros) { | |
let i; | |
let totalSoma = 0; | |
for (i = 0; i < numeros.length; i++) { | |
totalSoma += numeros[i]; | |
} | |
return totalSoma; | |
} | |
divisao(dividendo, divisor) { | |
return dividendo/divisor; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment