From 00333750f587bc1b4fc9349ea6c2a997928f2cdf Mon Sep 17 00:00:00 2001 From: lolabird Date: Tue, 26 Dec 2023 20:12:58 -0700 Subject: [PATCH] Fix typo --- script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index e53a78c..9f81223 100644 --- a/script.js +++ b/script.js @@ -7,12 +7,15 @@ buttons.forEach((button) => { function displayToScreen() { - if(this.className == "equal") { - //testButton(); + if (this.className == "equal") { + //equal + } else if (this.className == "clear") { + //clear } else { screen.textContent = this.textContent; console.log("A button was pressed") } + } function Calculator(str) {