20 lines
416 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Accessing Object Properties with Bracket Notation
---
## Accessing Object Properties with Bracket Notation
Here's one possible solution:
```js
var testObj = {
"an entree": "hamburger",
"my side": "veggies",
"the drink": "water"
};
// Only change code below this line
var entreeValue = testObj["an entree"]; // Change this line
var drinkValue = testObj["the drink"]; // Change this line
```