Tell us what’s happening:
Hi guys , below is a challenge that has two possible methods that can be used to solve the challenge. I managed to get the challenge correct using the first method , however when I tried the second method I couldn’t pass the challenge .I am looking for assistance with this .The link to the challenge is https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-variables
**Your code so far**
// Setup
var testObj = {
12: "Namath",
16: "Montana",
19: "Unitas"
};
// Only change code below this line
var playerNumber = 16; // Change this line
var player = testObj[playerNumber]; // Change this line
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Challenge: Accessing Object Properties with Variables
Link to the challenge: