"bark"
property to ourDog
:
ourDog.bark = "bow-wow";
or
ourDog["bark"] = "bow-wow";
Now when we evaluate ourDog.bark
, we'll get his bark, "bow-wow".
Example:
```js
var ourDog = {
"name": "Camper",
"legs": 4,
"tails": 1,
"friends": ["everything!"]
};
ourDog.bark = "bow-wow";
```
"bark"
property to myDog
and set it to a dog sound, such as "woof". You may use either dot or bracket notation.
"bark"
to myDog
.
testString: assert(myDog.bark !== undefined);
- text: You should not add "bark"
to the setup section.
testString: assert(!/bark[^\n]:/.test(code));
```