I'm creating a calculator, using HTML and JavaScript. My goal was that it had a button that allows the user to delete the last value entered (for example, the user types the number 9
and then 8
and form 98
, but he wants to delete the%
I would like a JavaScript code to solve this problem.