|
@@ -172,7 +172,7 @@ function Subtraction() {
|
|
|
let row = table.insertRow();
|
|
|
let cell = row.insertCell();
|
|
|
let cellText = nos[noIdx].join("");
|
|
|
- if(noIdx == nos.length-1){
|
|
|
+ if(parseInt(noIdx) === nos.length-1){
|
|
|
cellText = "- " + cellText;
|
|
|
}
|
|
|
cell.innerHTML = cellText;
|