0

How do I create a Backspace button for a HTML calculator with an input (solved)

https://code.sololearn.com/WDGdDkY1YxCX/?ref=app

8th Oct 2022, 5:57 PM
Tushita Priya
Tushita Priya - avatar
2 Answers
+ 1
A very basic approach (following your) is removing last character of input: Calculator.Input.value= Calculator.Input.value.substring(0,Calculator.Input.value.length-1)
9th Oct 2022, 7:35 AM
KrOW
KrOW - avatar
+ 1
Thank you very much
9th Oct 2022, 7:51 AM
Tushita Priya
Tushita Priya - avatar