Array - concat and slice : Array : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Array »

 

Array - concat and slice




<html>
<body>

<script type="text/javascript">
var nameArray = new Array(3)
nameArray[0"Joe"
nameArray[1"Dan"
nameArray[2"Darlene"

var nameArray2 = new Array(3)
nameArray2[0"Lee"
nameArray2[1"Zong"
nameArray2[2"JJ"

var nameArray3 = new Array("Firat","Basdr")

document.write(nameArray.join() "<br>")
document.write(nameArray.concat(nameArray2"<br>")
document.write(nameArray.concat(nameArray2,nameArray3"<br>")
document.write(nameArray.slice(1"<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