Forráskód Böngészése

removed signs in calculation grid

Bernadette Elena Hammerle 2 éve
szülő
commit
5eb8572dfd
2 módosított fájl, 0 hozzáadás és 6 törlés
  1. 0 3
      src/Addition.js
  2. 0 3
      src/Subtraction.js

+ 0 - 3
src/Addition.js

@@ -173,9 +173,6 @@ function Addition() {
       let row = table.insertRow();
       let cell = row.insertCell();
       let cellText = nos[noIdx].join("");
-      if(parseInt(noIdx) === nos.length-1){
-        cellText = "+ " + cellText;
-      }
       cell.innerHTML = cellText;
       cell.tabIndex = "0";
       cell.id = "numbersTd" + noIdx;

+ 0 - 3
src/Subtraction.js

@@ -176,9 +176,6 @@ function Subtraction() {
       let row = table.insertRow();
       let cell = row.insertCell();
       let cellText = nos[noIdx].join("");
-      if(parseInt(noIdx) === nos.length-1){
-        cellText = "- " + cellText;
-      }
       cell.innerHTML = cellText;
       cell.tabIndex = "0";
       cell.id = "numbersTd" + noIdx;