Get the First and Last Characters of a String in JavaScript
In this post you will learned how to get the First and Last Characters of a String in JavaScript; In Javascript to get the first and last characters of a string, you can use the charAt() method. Indexes are zero-based in JavaScript. The first character in the string has an index of 0 and the last has … Read more