Answers for "how remove last letter js"

1

how remove last letter js

const text = 'abcdef'
const editedText = text.slice(0, -1) //'abcde'
Posted by: Guest on March-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language