Last active
December 20, 2018 17:06
-
-
Save chris-sev/412c418bb3b3985889c913a16c89ef7e to your computer and use it in GitHub Desktop.
Quick Example
This file contains 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
// we have 2 arrays of people | |
const people = ['chris', 'nick']; | |
const newPeople = ['holly', 'william']; | |
// add them together to create a new array | |
const allPeople = people.concat(newPeople); | |
// output: ['chris', 'nick', 'holly', 'william'] | |
console.log(allPeople); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment