javascript remove last characters from string

52

javascript remove last characters from string -

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

Comments

Submit
0 Comments