Files

23 lines
360 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Add New Properties to a JavaScript Object
---
# Add New Properties to a JavaScript Object
2018-10-12 15:37:13 -04:00
---
## Solutions
2018-10-12 15:37:13 -04:00
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```js
var myDog = {
name: "Happy Coder",
legs: 4,
tails: 1,
friends: ["freeCodeCamp Campers"]
2018-10-12 15:37:13 -04:00
};
// Only change code below this line.
myDog.bark = "woof";
```
</details>