mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-13 09:02:23 -05:00
377 B
377 B
title
| title |
|---|
| Accessing Object Properties with Dot Notation |
Accessing Object Properties with Dot Notation
Here's one possible solution:
var testObj = {
"hat": "ballcap",
"shirt": "jersey",
"shoes": "cleats"
};
// Only change code below this line
var hatValue = testObj.hat; // Change this line
var shirtValue = testObj.shirt; // Change this line