var ourPets = [
{
animalType: "قطة" ،
الأسماء: [
"Meowzer"
"رقيق"،
"كيت كات"
]
}،
{
animalType: "dog" ،
الأسماء: [
"بقعة"،
"العربة"،
"فرانكي"
]
}
].
ourPets [0] .names [1]؛ // "رقيق"
ourPets [1] .names [0]؛ // "سبوت"
myPlants
المتغير باستخدام myPlants
نقطة الكائن myPlants
مجموعة الصفيف. secondTree
ينبغي أن يساوي "الصنوبر"
testString: 'assert(secondTree === "pine", "secondTree
should equal "pine"");'
- text: استخدم نقطة myPlants
قوس للوصول إلى myPlants
testString: 'assert(/=\s*myPlants\[1\].list\[1\]/.test(code), "Use dot and bracket notation to access myPlants
");'
```