How can I trim the dot at the end of string in JS ?
Input:
const string = 'ABCD.txt'
Output:
const string = 'ABCD'
How can I do ?
Thanks for help me
How can I trim the dot at the end of string in JS ?
Input:
const string = 'ABCD.txt'
Output:
const string = 'ABCD'
How can I do ?
Thanks for help me