Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
var mynumbers = [3, 10, 18, 20];
function checkArray(mynumber) {
return mynumber >= 18;
}
function myFunction() {
document.getElementById("demo").innerHTML = mynumbers.some(checkArray);
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507