--- id: 56533eb9ac21ba0edf2244c7 title: Accessing Object Properties with Dot Notation challengeType: 1 videoUrl: '' localeTitle: Доступ к объектным свойствам с нотами Dot --- ## Description undefined ## Instructions
Прочитайте значения свойств testObj с использованием точечной нотации. Установите переменную hatValue равное свойству объекта hat и установить переменную shirtValue равной свойству объекта shirt .
## Tests
```yml tests: - text: '' testString: 'assert(typeof hatValue === "string" , "hatValue should be a string");' - text: Значение hatValue должно быть "ballcap" testString: 'assert(hatValue === "ballcap" , "The value of hatValue should be "ballcap"");' - text: shirtValue должна быть строкой testString: 'assert(typeof shirtValue === "string" , "shirtValue should be a string");' - text: Значение shirtValue должно быть "jersey" testString: 'assert(shirtValue === "jersey" , "The value of shirtValue should be "jersey"");' - text: Вы должны использовать точную нотацию дважды testString: 'assert(code.match(/testObj\.\w+/g).length > 1, "You should use dot notation twice");' ```
## Challenge Seed
```js // 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 ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```