1function friends(){
2 var names = {
3 closeCircle: ['bebo','eli','matthew'],
4 outerCircle:['vierie','nate','james','george'],
5 };
6 return [names.closeCircle[0], names.closeCircle[2]]
7 //returns bebo and matthew
8}
1
2
3
4
5 function getNames() {
6 // get names from the database or API
7 let firstName = 'John',
8 lastName = 'Doe';
9
10 // return values
11 return {
12 firstName,
13 lastName
14 };
15}