const ages = [ 3, 10, 18, 20 ]; function checkAge(ages) { return ages > 18; } document.getElementById("demo").innerHTML = ages.find(checkAge);