Created
June 7, 2016 19:11
-
-
Save codenamejason/9df0e5ec3cc5c3520f076fa91bc36a81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array1 = [1,2,3]; | |
var array2 = [4,5,6]; | |
window.onload = function() { | |
array1 = array1.concat(array2); | |
// result = array1[1,2,3,4,5,6] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add an array to an array with concat