Skip to content

Instantly share code, notes, and snippets.

@AliN11
Created July 17, 2019 04:25
Show Gist options
  • Save AliN11/4ed7069da3c62a6c041084ecb2409296 to your computer and use it in GitHub Desktop.
Save AliN11/4ed7069da3c62a6c041084ecb2409296 to your computer and use it in GitHub Desktop.
let house1 = {
color: 'green'
}
let house2 = house1;
console.log(house1.color); // green
console.log(house2.color); // green
house1.color = "yellow"
console.log(house1.color); // yellow
console.log(house2.color); // yellow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment