Skip to content

Instantly share code, notes, and snippets.

@bripkens
Created November 24, 2012 06:24
Show Gist options
  • Save bripkens/4138651 to your computer and use it in GitHub Desktop.
Save bripkens/4138651 to your computer and use it in GitHub Desktop.
'JavaScript, State of the Art' article series: type coercion
> "20" - 10
10
> "20" + 10
2010
> "42" == 42
true
> undefined == null
true
> Number.MIN_VALUE + 1 == 1
true
> NaN == NaN
false
> isNaN(NaN)
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment