Files

24 lines
422 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Accessing Object Properties with Dot Notation
---
# Accessing Object Properties with Dot Notation
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```js
var testObj = {
hat: "ballcap",
shirt: "jersey",
shoes: "cleats"
2018-10-12 15:37:13 -04:00
};
// Only change code below this line
var hatValue = testObj.hat; // Change this line
var shirtValue = testObj.shirt; // Change this line
2018-10-12 15:37:13 -04:00
```
</details>