You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/033-addObjectProperty/README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,9 @@
2
2
3
3
## 📝 Instructions:
4
4
5
-
1. Write a function called `addObjectProperty`. Given two objects and a key, `addObjectProperty` sets a new property on the 1st object at the given key. The value of that new property is the 2nd object.
6
-
2. The function `addObjectProperty` should then return the first object with the new property.
5
+
1. Write a function called `addObjectProperty`. This function takes two objects and a key as arguments.
6
+
2. The `addObjectProperty` function must set a new property on the first object using the key provided. The value of this new property must be the second object.
7
+
3. The `addObjectProperty` function must return the first object modified with the new property.
0 commit comments