freeCodeCamp/guide/portuguese/certifications/javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-bracket-notation/index.md
2018-10-16 21:32:40 +05:30

515 B

title localeTitle
Accessing Object Properties with Bracket Notation 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:

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