Created
March 5, 2019 11:01
-
-
Save fdjones/ca2ae1a07430b1843af77a805280f0d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = { a: 2 }; | |
var b = foo; | |
//typing b into the console returns { a: 2 } | |
foo = { a: 10 }; | |
//typing b into the console still returns { a: 2 } | |
var foo = { a: 2 }; | |
var b = foo; | |
//typing b into the console returns { a: 2 } | |
foo.bar = 'hi'; | |
//typing b into the console returns { a: 2, bar: hi } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment