Array - properties and methods : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

Array - properties and methods



<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>



           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Array