diff --git a/Chapter 3/Exercise 3.5 b/Chapter 3/Exercise 3.5 new file mode 100644 index 0000000..ffde2ce --- /dev/null +++ b/Chapter 3/Exercise 3.5 @@ -0,0 +1,6 @@ +const people = {friends:[]}; +const friend1 = {first: "Laurence", last: "Svekis", id: 1}; +const friend2 = {first: "Jane", last: "Doe", id: 2}; +const friend3 = {first: "John", last: "Doe", id: 3}; +people.friends.push(friend1, friend2, friend3); +console.log(people);