scrimba
Learn Basic JavaScript
Accessing Object Properties with Bracket Notation
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Accessing Object Properties with Bracket Notation
AboutCommentsNotes
Accessing Object Properties with Bracket Notation
Expand for more info
index.js
run
preview
console
// Setup
var testObj = {
"an entree": "hamburger",
"my side": "veggies",
"the drink": "water"
};

// Only change code below this line

var entreeValue = testObj; // Change this line
var drinkValue = testObj; // Change this line
Console
index.html
-1:09