<html>
<body>
<script type="text/javascript">
var nameArray = new Array(3)
nameArray[0] = "Name 1"
nameArray[1] = "Name 2"
nameArray[2] = "Name 3"
document.write(nameArray.length + "<br>")
document.write(nameArray.join(".") + "<br>")
document.write(nameArray.reverse() + "<br>")
document.write(nameArray.push("Ola","Jon") + "<br>")
document.write(nameArray.pop() + "<br>")
document.write(nameArray.shift() + "<br>")
</script>
</body>
</html>
|