Last active
November 22, 2016 23:36
-
-
Save kjvarga/838771f5906e04a015f9 to your computer and use it in GitHub Desktop.
Javascript questions
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
# When comparing objects, identifiers must reference the same objects or array | |
var a = {a: 1}; | |
var b = {a: 1}; | |
a == b // false | |
a === b // false | |
# The type of undefined is 'undefined', typeof(null) is object | |
var a = null; | |
a == undefined // true | |
a === undefined // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment