Home > Mobile >  how to trim dot at the end of string in JS?
how to trim dot at the end of string in JS?

Time:10-03

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

  • Related