Skip to content

Commit

Permalink
fixes bug where the 'all clear' option does not go back to 'clear' af…
Browse files Browse the repository at this point in the history
…ter clicking a number or an operator
  • Loading branch information
Kushagra J committed Nov 8, 2023
1 parent 895ce9b commit e4ce811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ function handleNumClick(){
return;
}
view.textContent += this.textContent;
clear.textContent = 'C';
}

function handleOperationClick(){
view.textContent += ` ${this.textContent} `;
clear.textContent = 'C';
}

function handleClearClick(){
Expand Down

0 comments on commit e4ce811

Please sign in to comment.