Answers for "get last 3 chars of string in js"

28

javascript get last character of string

var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
Posted by: Guest on July-23-2019
0

find the last occurrence of a character in a string javascript

str.lastIndexOf(searchValue[, fromIndex])
Posted by: Guest on March-19-2021

Code answers related to "get last 3 chars of string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language