Skip to content

Instantly share code, notes, and snippets.

@suhailgupta03
Created August 16, 2023 16:10
Show Gist options
  • Save suhailgupta03/a0103727b8940f44cf8a5f824e8a2855 to your computer and use it in GitHub Desktop.
Save suhailgupta03/a0103727b8940f44cf8a5f824e8a2855 to your computer and use it in GitHub Desktop.
let arr1 = [
1,2,3
]
let arr2 = [
4,5,6
]
let negativeNumbers = [
-1,-2,-3
]
let arr3 = [
...arr1,
...arr2,
...negativeNumbers
]
console.log(arr3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment