js remove last 3 characters and replace code example
Example: javascript remove last character from string
const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'
const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'