+ 3
concat
what if we want to concat more than one array.
2 Respostas
+ 5
Hello, Riya Tarika !
Method "concat()"
Can merge one or more arrays into javascript
For Example:
a = new Array(1,2,3);
b = "bird";
c = new Array(42, "fox");
d = a.concat(b, c);
alert(d);
+ 2
newArray = arr0.concat(arr1, arr2, arr3);