<script>
var a = ["Text 1", "Text 2", "Text 3"];
document.write(a.length) ;
</script>