testObj
с использованием точечной нотации. Установите переменную hatValue
равное свойству объекта hat
и установить переменную shirtValue
равной свойству объекта shirt
. 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");'
```