Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Arrays</h2>
<p>The length property returns the length of an array.</p>
<p id="demo"></p>
<script>
const myArray = [50,60,70,80,90,100,110,120,130,140,150];
document.getElementById("demo").innerHTML = myArray.length;
</script>
</body>
</html>