Answers for "how to tget he last character of string in javascript usining slice"

30

javascript substring last character

var hello = "Hello World";
var lastCharOfHello=hello.slice(-1);//d
Posted by: Guest on August-01-2019
2

js omit last string

"somestring0".slice(0, -1)
// "somestring"
Posted by: Guest on June-05-2020

Code answers related to "how to tget he last character of string in javascript usining slice"

Code answers related to "Javascript"

Browse Popular Code Answers by Language