Easy javascript but i cant seem to get it : modify the function to display the names that are 16 and bigger
the answer should look like this ['joey', 'jane']
with the code i have i am able to display one name but i cannot get the other name to display but not in the array formate. sorry i am new to javascript 

when i console log the return statement in the if function i get

console.log(people[i].name) -------> 'joey','jane' undefined

function getNamesOfLegalDrivers(people) {
  
for(let i = 0; i < people.length; i++){
      
if(people[i].age >= 16){
     
 return people[i].name;
 
   } 

  }

}

const examplePeopleArray = [

  { name: 'John', age: 14 },

  { name: 'Joey', age: 16 },

  { name: 'Jane', age: 18 }

];

console.log(getNamesOfLegalDrivers(examplePeopleArray), '<-- should be 

["Joey", "Jane"]');

my output is: 'Joey' <-- should be ["Joey", "Jane"]'

result suppose to be: ["Joey", "Jane"]