Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Created November 19, 2019 06:52
Show Gist options
  • Save myogeshchavan97/48c1c9e7cb28731c1c033c5e9c0153ab to your computer and use it in GitHub Desktop.
Save myogeshchavan97/48c1c9e7cb28731c1c033c5e9c0153ab to your computer and use it in GitHub Desktop.
Concat Two Arrays
const first = ["monday","tuesday"];
const second = ["wednesday", "thursday", "friday"];
const combined = ["sunday", ...first, ...second, "saturday"];
console.log(combined);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment