How to make delete button in calculater program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make delete button in calculater program

14th Aug 2021, 10:43 AM
Kaushal Rajput
2 Answers
+ 2
JS: document.querySelector('.input_element').value="";
20th Aug 2021, 2:03 AM
Sancho Godinho
Sancho Godinho - avatar
+ 2
Delete button should remove the last character from string or pop character from a list (assuming that string or list contains the result or group of operands and numbers that you display on the screen) .
14th Aug 2021, 11:20 AM
Abhay
Abhay - avatar