Skip to content

Instantly share code, notes, and snippets.

@alexanderisora
Created July 27, 2018 10:14
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alexanderisora/e5eee4d915e13fa53dc8779316e41bcf to your computer and use it in GitHub Desktop.
Weird JS expressions
[] == ![] // -> 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