SyntaxFix
Write A Post
Hire A Developer
Questions
Check out the substring function.
To get the last character:
id.substring(id.length - 1, id.length);