Created
January 2, 2017 22:28
-
-
Save chrislaughlin/cc69a70bd12ac872a6e27f9df53e44ed to your computer and use it in GitHub Desktop.
Object Equality
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
const chris1 = { | |
name: 'Chris', | |
location: 'Belfast' | |
} | |
const chris2 = { | |
name: 'Chris', | |
location: 'Belfast' | |
} | |
console.log(chris1 === chris2); //false | |
console.log(chris1 == chris2); //false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment