Answers for "how to slice 6 last char a string in js"

11

js remove the last character of a string

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

javascript how to remove the last character of the string

var string = "RandomString";
var slicedString = string.slice(0, -1);
Posted by: Guest on May-22-2021

Code answers related to "how to slice 6 last char a string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language