subtraction added to calc app

This commit is contained in:
sweatshirt0 2023-01-23 15:48:49 -05:00
parent c39aa9e957
commit 48f2947880

View File

@ -12,3 +12,7 @@ let op = prompt("What operation? ");
if (op == "+") { if (op == "+") {
console.log(Number(c) + Number(d)); console.log(Number(c) + Number(d));
} }
if (op == "-") {
console.log(Number(c) - Number(d));
}