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