freeCodeCamp/guide/arabic/certifications/javascript-algorithms-and-d.../basic-javascript/accessing-object-properties.../index.md

482 B

title localeTitle
Accessing Object Properties with Dot Notation الوصول إلى خصائص كائن مع ترميز Dot

الوصول إلى خصائص كائن مع ترميز Dot

فيما يلي حل واحد ممكن:

`var testObj = { "hat": "ballcap", "shirt": "jersey", "shoes": "cleats" };

// Only change code below this line

var hatValue = testObj.hat; // Change this line var shirtValue = testObj.shirt; // Change this line `