04-04-2023, 07:42 AM
Code:
const ages =
[
32,
33,
16,
40
];
function checkAge(ages)
{
return ages > 18;
}
document.getElementById("demo").innerHTML = ages.every(checkAge);
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos