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}
1this.runThisFunctionOnCall = function(){
2 var array1 = [11,12,13,14,15];
3 var array2 = [21,22,23,24,25];
4 var array3 = [31,32,33,34,35];
5
6 return [
7 array1,
8 array2,
9 array3
10 ];
11}