var firstName = "Charles"
string by using firstName[firstName.length - 3]
lastName
string.
HintthirdToLastLetterOfFirstName
variable declaration if you get stuck.
secondToLastLetterOfLastName
should be "c".
testString: 'assert(secondToLastLetterOfLastName === ''c'', ''secondToLastLetterOfLastName
should be "c".'');'
- text: You have to use .length
to get the second last letter.
testString: 'assert(code.match(/\.length/g).length === 2, ''You have to use .length
to get the second last letter.'');'
```