0
开始计数,因此第一个字符实际上是第0个字符。 thirdLetterOfLastName
设置为等于lastName
变量的第三个字母。 暗示 secondLetterOfFirstName
变量声明。 thirdLetterOfLastName
变量的值应为v
。
testString: 'assert(thirdLetterOfLastName === "v", "The thirdLetterOfLastName
variable should have the value of v
.");'
- text: 您应该使用括号表示法。
testString: 'assert(code.match(/thirdLetterOfLastName\s*?=\s*?lastName\[.*?\]/), "You should use bracket notation.");'
```