浏览代码

removed signs in calculation grid

Bernadette Elena Hammerle 2 年之前
父节点
当前提交
5eb8572dfd
共有 2 个文件被更改,包括 0 次插入6 次删除
  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;