How to do the last step

Tell us what’s happening:
Describe your issue in detail here.

  **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[16];   // 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/102.0.5005.63 Safari/537.36 Edg/102.0.1245.30

Challenge: Accessing Object Properties with Variables

Link to the challenge:

You need to use the variable, not use the number directly

You should be using the variable


in your bracket notation

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.