Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let arrayOne = [1, 2, 3];
let arrayTwo = [4, 5, 6];
let mergedArray = [...arrayOne, ...arrayTwo];
for (let number of mergedArray) {
console.log(number);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment