Answers for "slice last part of string"

6

remove last character from string

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

remove last charecter from string

buggy_name = 'GeekflareE'
name = buggy_name[:-1]
Posted by: Guest on October-21-2021

Code answers related to "slice last part of string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language