Created
August 28, 2020 13:41
-
-
Save alenvlahovljak/590b4f2c3c666534d0b18c2669ca52ed to your computer and use it in GitHub Desktop.
How does Abstract Equality Comparison work?
This file contains 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 str1 = "Hello"; | |
var str2 = new String("Hello"); | |
str1 == str2 // true | |
str1 === str2 // false - coercion was not allowed this time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment