freeCodeCamp/guide/portuguese/certifications/javascript-algorithms-and-d.../basic-javascript/accessing-object-properties.../index.md

21 lines
515 B
Markdown
Raw Normal View History

---
title: Accessing Object Properties with Bracket Notation
localeTitle: Acessando propriedades de objeto com notação de suporte
---
## Acessando propriedades de objeto com notação de suporte
Aqui está uma solução possível:
```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
```