Created
July 27, 2018 10:14
-
-
Save alexanderisora/e5eee4d915e13fa53dc8779316e41bcf to your computer and use it in GitHub Desktop.
Weird JS expressions
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
[] == ![] // -> true | |
Math.min() > Math.max() // -> true | |
a: b: c: d: e: f: g: 1, 2, 3, 4, 5; // -> 5 | |
(1).__proto__.__proto__.__proto__ // -> null | |
(0.1 + 0.2) === 0.3 // -> false | |
//More funny code samples: https://github.com/denysdovhan/wtfjs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment