Files

21 lines
589 B
Markdown
Raw Normal View History

2018-10-12 16:00:59 -04:00
---
title: Accessing Object Properties with Bracket Notation
localeTitle: Доступ к объектным свойствам с помощью скобок
---
## Доступ к объектным свойствам с помощью скобок
Вот одно из возможных решений:
```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
```