fromrachel
Member
- Joined
- Dec 14, 2013
- Messages
- 231
- Points
- 18
Hi everyone,
I have a string :
I want to remove last character
string1 = Aaron,Abner,Abraham,Adam,Addison;
The result should be: Aaron,Abner,Abraham,Adam,Addison
I want to remove last word
string2 = Aaron,Abner,Abraham,Adam,Addison
The result should be: Aaron,Abner,Abraham,Adam,
How can I remove only the last character or word from the strings above using Javascript?
I have a string :
I want to remove last character
string1 = Aaron,Abner,Abraham,Adam,Addison;
The result should be: Aaron,Abner,Abraham,Adam,Addison
I want to remove last word
string2 = Aaron,Abner,Abraham,Adam,Addison
The result should be: Aaron,Abner,Abraham,Adam,
How can I remove only the last character or word from the strings above using Javascript?