Tell us what’s happening:
Code is is giving me the players name for number 16 but it still wont let me pass??
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:
Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://www.freecodecamp.org/challenges/accessing-objects-properties-with-variables