Correct answer, I doubt

Tell us what’s happening:

answer to complete: 

var hatValue = testObj.hat;      
var shirtValue = testObj.shirt;    

But i think is:
var hatValue = testObj[hat];      
var shirtValue = testObj[shirt];
Because property use " ".
I'm wrong?```
   
**Your code so far**

```js

// Setup
var testObj = {
  "hat": "ballcap",
  "shirt": "jersey",
  "shoes": "cleats"
};

// Only change code below this line

var hatValue = testObj;      // Change this line
var shirtValue = testObj;    // 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/76.0.3809.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-dot-notation

Unless hat is a variable with a value of “hat” and shirt is a variable with a value of “shirt”, then you can not use bracket notation around hat and shirt and get the desired results. You could however, surround hat and shirt with quotes within the bracket notation and it would work.