Fix typo
This commit is contained in:
parent
ea4c135b29
commit
00333750f5
1 changed files with 5 additions and 2 deletions
|
|
@ -8,11 +8,14 @@ buttons.forEach((button) => {
|
|||
function displayToScreen() {
|
||||
|
||||
if (this.className == "equal") {
|
||||
//testButton();
|
||||
//equal
|
||||
} else if (this.className == "clear") {
|
||||
//clear
|
||||
} else {
|
||||
screen.textContent = this.textContent;
|
||||
console.log("A button was pressed")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function Calculator(str) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue