freeCodeCamp Challenge Guide: Use Bracket Notation to Find the Nth-to-Last Character in a String

freeCodeCamp Challenge Guide: Use Bracket Notation to Find the Nth-to-Last Character in a String
0.0 0

#1

You can get the value of the third-to-last letter of the var firstName = "Charles" string by using firstName[firstName.length - 3].


#2