From c757986d08014b110b6327ee357b7fe5482ee6ff Mon Sep 17 00:00:00 2001 From: sweatshirt0 Date: Mon, 23 Jan 2023 15:53:31 -0500 Subject: [PATCH] division added to calc app; basic logic complete. --- calculator.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calculator.js b/calculator.js index 713036a..87fa2dc 100644 --- a/calculator.js +++ b/calculator.js @@ -20,3 +20,7 @@ if (op == "-") { if (op == "*") { console.log(Number(c) * Number(d)); } + +if (op == "/") { + console.log(Number(c) / Number(d)); +}