Answers for "how to crop last 4 letter from string in javascript"

11

javascript remove last characters from string

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

js remove last char of string

let str = "12345.00";
str = str.substring(0, str.length - 1);
Posted by: Guest on November-14-2020

Code answers related to "how to crop last 4 letter from string in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language