Challenge Use Bracket Notation To Find The Nth To Last Character In A String - thelastmile/FreeCodeCamp GitHub Wiki
Challenge Use Bracket Notation to Find the Nth-to-Last Character in a String
You can get the value of the third-to-last letter of the var firstName = "Charles"
string by using firstName[firstName.length - 3]
.