diff --git a/calculator.js b/calculator.js index 661bc4d..9d72219 100644 --- a/calculator.js +++ b/calculator.js @@ -12,3 +12,7 @@ let op = prompt("What operation? "); if (op == "+") { console.log(Number(c) + Number(d)); } + +if (op == "-") { + console.log(Number(c) - Number(d)); +}