Answers for "javascript remove last 5 characters"

28

Javascript remove last character

var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
Posted by: Guest on July-23-2019
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 remove last 5 characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language