Skip to content

Instantly share code, notes, and snippets.

@flpms
Created June 22, 2019 17:24
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 flpms/d95481206ad678f2771b7c626a30ac31 to your computer and use it in GitHub Desktop.
Save flpms/d95481206ad678f2771b7c626a30ac31 to your computer and use it in GitHub Desktop.
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