Clear topScreen on number press after operation is fully evaluated
This commit is contained in:
parent
f1bd317ab8
commit
bc12cd9731
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ function displayNum() {
|
|||
mainScreen.textContent += this.textContent;
|
||||
}
|
||||
|
||||
if (isEval) {
|
||||
topScreen.textContent = "";
|
||||
}
|
||||
|
||||
isEval = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue