Published
- 1 min read
javascript get last character in string
The solution for this is noted below
javascript get last character in string
Solution
var hello = 'Hello World'
var lastCharOfHello = hello.slice(-1) //d
Try other methods by searching on the site. That is if this doesn’t work