From a44c58506c98b06e73fb02c3c086453ed3aa179d Mon Sep 17 00:00:00 2001 From: Karan <50290386+Sonawane-Karan26@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:20:44 +0530 Subject: [PATCH] Exercise 3.5 --- Chapter 3/Exercise 3.5 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Chapter 3/Exercise 3.5 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);