Skip to content

Commit

Permalink
Update calc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
obaidofj authored Jul 29, 2020
1 parent c83cedd commit c227271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function inputDigit(digit) {
return;
} else {
calculator.displayValue =
displayValue === "" ? digit : displayValue + digit;
displayValue === "" ? digit : displayValue.toString() + digit;
//console.log(calculator);
calculator.inputDec = false;
//alert("rr");
Expand Down

0 comments on commit c227271

Please sign in to comment.