last character of string javascript - Google Search

PHOTO EMBED

Mon Aug 30 2021 09:05:34 GMT+0000 (Coordinated Universal Time)

Saved by @urad29 #javascript

length function. Since the indexing starts from 0 so use str. charAt(str. length-1) to get the last character of string.
content_copyCOPY

https://www.google.com/search?q