Skip to content

Commit

Permalink
corrigido erro em que a calculadora nao funcionava
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliztro committed Apr 18, 2022
1 parent 802b0c0 commit 08828de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function calculadora() {
let entrada = 1;
let acumulador = parseFloat(document.getElementById('soma').value);

acumulador = isNaN(pix)?0:acumulador;
// acumulador = isNaN(pix)?0:acumulador;

while(entrada != 0) {
entrada = parseFloat(prompt(`Digite o valor à ser somado`)); //prompt("arg01", "arg02") //arg02 mostra um texto na caixa
Expand All @@ -77,7 +77,7 @@ function calculadora2() {
let entrada = 1;
let acumulador = parseFloat(document.getElementById('soma').value);

acumulador = isNaN(pix)?0:acumulador;
// acumulador = isNaN(pix)?0:acumulador;

while(entrada != 0) {
entrada = parseFloat(prompt(`Digite o valor à ser Subtraido`));
Expand Down

0 comments on commit 08828de

Please sign in to comment.