javascript remove last characters from string

49

javascript remove last characters from string -

const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'

Comments

Submit
0 Comments