Skip to content

Challenge Use Bracket Notation to Find the Nth to Last Character in a String

SaintPeter edited this page · 1 revision
Clone this wiki locally

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

Something went wrong with that request. Please try again.