Created
July 22, 2017 19:53
-
-
Save prof3ssorSt3v3/544e9f1d866dd68da33ac89113c4b3a1 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
//Array concat method | |
let a = [2, 4, 6, 8]; | |
let b = [1, 3, 5]; | |
//for() | |
//for( in ) | |
//a.forEach() push() unshift() | |
let c = a.concat(b); | |
console.log("c", c); | |
let d = [].concat(a, b, c).sort(); | |
console.log("d", d); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment