<file_sep>//function add (a, b) {
//  return(a+b);
//}
//
//var toAdd = [9,5];
//
//console.log(add(...toAdd));

//var groupA = ['Jeff', 'Stef'];
//var groupB = ['Mat', 'Jen'];
//
//var final = ['4', ...groupA, ...groupB];
//
//console.log(final);

var person = ['Jeff', 55]
var person2 = ['Stef', 53]

function greet(name, age) {
  console.log('Hi ' + name + ', you are ' + age);
}

greet(...person);
greet(...person2);

var names = ['Mike', 'Ben'];
var final = ['Jeff', ...names]; 

function greet2(name) {
  for (var i = 0; i < name.length; i++) {
    console.log('Hi ' + name[i]);
  } 
}

greet2(final);