Answers for "js keep last char of string"

11

remove last char from string JavaScript

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

javascript string except last character

id.slice(0, -2)
Posted by: Guest on March-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language