mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-12 06:03:04 -05:00
520 B
520 B
title, localeTitle
| title | localeTitle |
|---|---|
| Accessing Object Properties with Bracket Notation | Acceso a las propiedades del objeto con notación de corchete |
Acceso a las propiedades del objeto con notación de corchete
Aquí hay una posible solución:
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