--- id: 587d7dac367417b2b2512b74 title: Use Dot Notation to Access the Properties of an Object challengeType: 1 videoUrl: '' localeTitle: استخدم Dot Notation للوصول إلى خصائص كائن --- ## Description
خلق التحدي الأخير object به properties ، والآن سترى كيفية الوصول إلى قيم تلك properties . إليك مثال على ذلك:
دع بطة = {
الاسم: "Aflac" ،
numLegs: 2

console.log (duck.name)؛
// هذا يطبع "Aflac" إلى وحدة التحكم
يتم استخدام الترقيم النقطي على اسم object ، duck ، متبوعًا باسم property ، name ، للوصول إلى قيمة "Aflac".
## Instructions
طباعة كلا properties كائن dog أدناه لوحدة التحكم الخاصة بك.
## Tests
```yml tests: - text: يجب عليك استخدام console.log لطباعة القيمة لخاصية name كائن dog . testString: 'assert(/console.log\(.*dog\.name.*\)/g.test(code), "Your should use console.log to print the value for the name property of the dog object.");' - text: يجب استخدامك console.log لطباعة القيمة لخاصية numLegs للكائن dog . testString: 'assert(/console.log\(.*dog\.numLegs.*\)/g.test(code), "Your should use console.log to print the value for the numLegs property of the dog object.");' ```
## Challenge Seed
```js let dog = { name: "Spot", numLegs: 4 }; // Add your code below this line ```
## Solution
```js // solution required ```