What will be the output of the following JavaScript code? [code] <p id="demo"></p> <script> var numbers = [45, 4, 9, 16, 25]; var someOver18

What will be the output of the following JavaScript code?
Code:
<p id="demo"></p>
<script>
var numbers = [45, 4, 9, 16, 25];
var someOver18 = numbers.some(myFunction);
document.getElementById("demo").innerHTML = "Some over 18 is " + someOver18;
function myFunction(value, index, array) 
{
  return value > 10;
}
</script>
A. True
B. False
C. Error
D. Undefined
 

Tìm kiếm

Back
Top