Basic JavaScript: Accessing Object Properties with Bracket Notation | freeCodeCamp.org
Mon Sep 26 2022 20:07:45 GMT+0000 (Coordinated Universal Time)
Saved by @chymax030 #javascript
// Setup const testObj = { "an entree": "hamburger", "my side": "veggies", "the drink": "water" }; // Only change code below this line const entreeValue = testObj["an entree"]; // Change this line const drinkValue = testObj["the drink"]; // Change this line
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-bracket-notation
Comments