Clear topScreen on number press after operation is fully evaluated

This commit is contained in:
lolabird 2023-12-27 21:55:56 -07:00
commit bc12cd9731

View file

@ -72,6 +72,10 @@ function displayNum() {
mainScreen.textContent += this.textContent;
}
if (isEval) {
topScreen.textContent = "";
}
isEval = false;
}