Answers for "javascript skip last character"

9

remove last character javascript

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

JS remove last character

var str= "Hello TecAdmin!";
var newStr = str.substring(0, str.length - 1);
Posted by: Guest on June-16-2021

Code answers related to "javascript skip last character"

Code answers related to "Javascript"

Browse Popular Code Answers by Language