<html>
<body>
<h1>JavaScript Typed Arrays</h1>
<h2>The some() Method</h2>
<p>Does the array contain a value over 18?</p>
<p id="demo"></p>
<script>
const myArr = new Int16Array(10);
myArr.fill(10);
document.getElementById("demo").innerHTML = myArr.some(check);
function check(x) {
return x > 18;
}
</script>
</body>
</html>