Array - concat and slice : Array « Language Basics « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Form Control
10. GUI Components
11. HTML
12. Javascript Collections
13. Javascript Objects
14. Javascript Properties
15. jQuery
16. Language Basics
17. Node Operation
18. Object Oriented
19. Page Components
20. Security
21. Style Layout
22. Table
23. Utilities
24. Window Browser
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorial
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » 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>


           
       
Related examples in the same category
1. Demo all methods in Array
2. Assing array value inside function
3. Simple Array Demo
4. Array loop, find:Control array : Two dimension array
5. Reversing, Sorting, and Concatenating an Array
6. Custom Numeric Comparison for the Array.Sort Method
7. Case-Insensitive Comparison for the Array.Sort Method
8. Iterating Through a Sparse Array
9. Using Functions to Iterate Through an Array
10. Reading and Writing Array Elements
11. Array with a numeric parameter and assign data to it
12. A string array
13. Array - properties and methods:length, join, reverse, push,pop,shift
14. Array - sort()
15. Array - splice
16. Methods and Properties of the Array Object
17. Displaying the Contents of an Array
18. Using the Array.join() Method
19. Using JavaScript Arrays
20. Extending the Length of an Array
21. An Array within an Array
22. Using the Methods of the Array object
23. Array.sort() Possibilities
24. Array.reverse() Method
25.  Array Concatenation
26. A Looping Array Lookup
27. A Simple Parallel Array Lookup
28. Adding a prototype Property
29. Two-Dimensional Array Work Around
30. Array definition and iteration
31. Reference an Array by index
32. URL Array
33. Array Utility functions
34. Dynamic array
w_w_w___.__j_a_v_a___2_s._c__o___m___ | |Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.