Skip to content

Instantly share code, notes, and snippets.

@kjvarga
Last active November 22, 2016 23:36
Show Gist options
  • Save kjvarga/838771f5906e04a015f9 to your computer and use it in GitHub Desktop.
Save kjvarga/838771f5906e04a015f9 to your computer and use it in GitHub Desktop.
Javascript questions
# 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