After doing some digging online I found the same problem with the solution either

function checkAge(arr) {
return arr.filter(age => age > 18)
}

or

function checkAge(arr) { // take in an array
var greaterThan18 = []; // initialize new empty array for the greater than 18 values
for (var i = 0; i < arr.length; i++) { // loop through the given array
if (arr[i] > 18) { // if the element in the array is greater than 18…
greaterThan18.push(arr[i]) // put the element in the new array we created earlier
} // we don’t need to do anything with the other elements
that aren’t over 18, so no ‘else’ needed
} // after the for loop is finished…
return greaterThan18 // we can return the array with the elements that are greater
than 18
}

Arrow Functions and Array Methods are both super new to me, so this explanation was pure gold. That’s for taking a look the problem!