Answers for "truncate last 9 character from string in javascript"

9

javascript remove last characters from string

const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'
Posted by: Guest on August-27-2020
1

javascript replace last character

var str1 = "Notion,Data,Identity,".replace(/.$/,".")
Posted by: Guest on April-28-2021

Code answers related to "truncate last 9 character from string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language