playerNumber variable to look up player 16 in testObj using bracket notation. Then assign that name to the player variable.
playerNumber should be a number
testString: assert(typeof playerNumber === 'number', 'playerNumber should be a number');
- text: The variable player should be a string
testString: assert(typeof player === 'string', 'The variable player should be a string');
- text: The value of player should be "Montana"
testString: assert(player === 'Montana', 'The value of player should be "Montana"');
- text: You should use bracket notation to access testObj
testString: assert(/testObj\s*?\[.*?\]/.test(code),'You should use bracket notation to access testObj');
- text: You should not assign the value Montana to the variable player directly.
testString: assert(!code.match(/player\s*=\s*"|\'\s*Montana\s*"|\'\s*;/gi),'You should not assign the value Montana to the variable player directly.');
- text: You should be using the variable playerNumber in your bracket notation
testString: assert(/testObj\s*?\[\s*playerNumber\s*\]/.test(code),'You should be using the variable playerNumber in your bracket notation');
```