Tell us what’s happening:
Hi just wanted to ask why does this not work when you use dot notation accessing objects properties with variables.
can you also please provide some reading material around this if possible.
**Your code so far**
// Setup
const testObj = {
12: "Namath",
16: "Montana",
19: "Unitas"
};
// Only change code below this line
const playerNumber = 16; // Change this line
const player = testObj.[playerNumber]; // Change this line
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
Challenge: Accessing Object Properties with Variables
Link to the challenge: