<h2>JavaScript Diziler</h2> <p id="demo"></p> <script> var insan = []; insan[0] = "Ali"; insan[1] = "Pak"; insan[2] = 46; var x = insan.length; var y = insan[0]; document.getElementById("demo").innerHTML=x + " " + y; </script>