Skip to content

Challenge Use Bracket Notation To Find The Nth To Last Character In A String

Quincy Larson edited this page Aug 20, 2016 · 1 revision

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].

Clone this wiki locally