playerNumber,通过中括号操作符找到testObj中playerNumber为16的值。然后把名字赋给变量player。
playerNumber应该是一个数字。
testString: assert(typeof playerNumber === 'number');
- text: 变量player应该是一个字符串。
testString: assert(typeof player === 'string');
- text: player点值应该是 "Montana"。
testString: assert(player === 'Montana');
- text: 你应该使用中括号访问testObj。
testString: assert(/testObj\s*?\[.*?\]/.test(code));
- text: 你不应该直接将Montana赋给player。
testString: assert(!code.match(/player\s*=\s*"|\'\s*Montana\s*"|\'\s*;/gi));
- text: 你应该在中括号中使用playerNumber变量。
testString: assert(/testObj\s*?\[\s*playerNumber\s*\]/.test(code));
```