Skip to content

Instantly share code, notes, and snippets.

@Peelz
Created January 19, 2022 07:31
Show Gist options
  • Save Peelz/0bd0203f16b251412a26b213822c495d to your computer and use it in GitHub Desktop.
Save Peelz/0bd0203f16b251412a26b213822c495d to your computer and use it in GitHub Desktop.
const a = [1,2,3,4,5]
b = a
b[2] = 10
console.log(a)
console.log(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment