Como quitar el ultimo caracter de un String

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