Backspace number by number

Hello,

I want to backspace number by number using an ← arrow button. I tried something like this, but that doesn’t work:

backSpace: async () => {
this.storeInput.slice(0, - 1);
}

How does this work?

Thank you!

@isa.grafit you need to store the value using
{{ storeValue('num', Input1.text.slice(0,-1)) }}
and read it in the input as
{{ appsmith.store.num }}