7 lines
264 B
Groff
7 lines
264 B
Groff
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);
|