var firstName = "Charles" ,则可以使用firstName[firstName.length - 1]获取字符串最后一个字母的值。 lastName变量中的最后一个字符。 暗示 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.");'
```