Originally Posted by triko
Hello guy! I have a problem with array, i don't know how to build a new array using the numbers of other array!
EX: I have
array1 = [1, 4, 2, 13, 5]
with this array1 I want to build other array2 using the numbers in the first array. So i don't know how to take number from array and put it in an other array!
A simple way to make a copy of an array without needing a loop.
array1 = [1, 4, 2, 13, 5];
array2 = .concat(array1);
Helping others to solve their computer problem at http://www.felgall.com/