-1

I'm struggling to remove the last character of a string in a given position of the array. To make it easy and for my project purpose, I want to remove the last character of the first array element position [0]. I've tried with splice and others but it's not working. Any help? Here is a simple test code:

test = ['80010','80030','80050'];

// Expected result

Console.log(test); //['8001','80030','80050']

0 Answers0