Skip to content

Instantly share code, notes, and snippets.

@alexanderisora
Created July 27, 2018 10:14
Show Gist options
  • Save alexanderisora/e5eee4d915e13fa53dc8779316e41bcf to your computer and use it in GitHub Desktop.
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