Basic JavaScript: Accessing Object Properties with Dot Notation | freeCodeCamp.org

EMBED

Mon Sep 26 2022 19:54:17 GMT+0000 (Coordinated Universal Time)

Saved by @chymax030 #javascript


const testObj = { hat: "ballcap", shirt: "jersey", shoes: "cleats" }; // Only change code below this line const hatValue = testObj.hat; // Change this line const shirtValue = testObj.shirt; // Change this line

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/accessing-object-properties-with-dot-notation