© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Abdullah Ahadi
Software Developer
In order to get the last letter of a string in JavaScript, you can subtract one from the string's length. var firstName = "julia"; var lastLetter = firstname[firstName.length - 1]; // output: a
No responses yet.