var firstName = "Charles"
, вы можете получить значение последней буквы строки, используя firstName[firstName.length - 1]
. lastName
. намек lastLetterOfFirstName
переменной lastLetterOfFirstName
если вы застряли. lastLetterOfLastName
должен быть «e».
testString: 'assert(lastLetterOfLastName === "e", "lastLetterOfLastName
should be "e".");'
- text: Вы должны использовать .length
для получения последней буквы.
testString: 'assert(code.match(/\.length/g).length === 2, "You have to use .length
to get the last letter.");'
```