Skip to content

Instantly share code, notes, and snippets.

@abinavseelan
Created September 2, 2017 07:05
Show Gist options
  • Save abinavseelan/6c1770bba712eb4bd960f4daacaff2c8 to your computer and use it in GitHub Desktop.
Save abinavseelan/6c1770bba712eb4bd960f4daacaff2c8 to your computer and use it in GitHub Desktop.
Medium - The Curious Case of Null >= 0 - ToNumber Conversion
Input Type Result
Undefined NaN
Null +0
Number No Conversion
Boolean The result is 1 if the argument is true. The result is +0 if the argument is false.
... ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment