Deleting element from the end of a string

hey folks, I was creating a fully functional numpad using variables while I was able to append any element at the end of the string using “+” operator, I cannot delete any element from that string is there any way I can do that( I don’t want to do empty the whole string by assigning its value to “”, I just want to delete a single element on each click.) thanks.

1 Like