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