Created
December 5, 2011 16:23
-
-
Save yonestra/1434169 to your computer and use it in GitHub Desktop.
Compare of equality operator
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 num = 10; | |
var str = "10"; | |
alert(num == str); //true | |
alert(num === str); //false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment