Created
September 18, 2014 18:28
-
-
Save snichme/726a796e982dd3a5d490 to your computer and use it in GitHub Desktop.
Impossible js
This file contains hidden or 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
| var a = { | |
| v: false, | |
| valueOf: function() { | |
| return this.v = !this.v; | |
| } | |
| }; | |
| if(a == true && a == false) { | |
| console.log('Impossible!!'); | |
| } else { | |
| console.log('That is more like it!'); | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment