scrimba
Learn Basic JavaScript
Accessing Object Properties with Dot 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 Dot Notation
AboutCommentsNotes
Accessing Object Properties with Dot Notation
Expand for more info
index.js
run
preview
console
// Setup
var testObj = {
"hat": "ballcap",
"shirt": "jersey",
"shoes": "cleats"
};

// Only change code below this line

var hatValue = testObj; // Change this line
var shirtValue = testObj; // Change this line
Console
index.html
-0:45