var firstName = "Charles"
, you can get the value of the last letter of the string by using firstName[firstName.length - 1]
.
lastName
variable.
HintlastLetterOfFirstName
variable declaration if you get stuck.
lastLetterOfLastName
should be "e".
testString: 'assert(lastLetterOfLastName === "e", "lastLetterOfLastName
should be "e".");'
- text: You have to use .length
to get the last letter.
testString: 'assert(code.match(/\.length/g).length === 2, "You have to use .length
to get the last letter.");'
```