Skip to content

Instantly share code, notes, and snippets.

@vjeux
Forked from padolsey/1.js
Last active December 14, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeux/5022831 to your computer and use it in GitHub Desktop.
Save vjeux/5022831 to your computer and use it in GitHub Desktop.
x = '/x/'
/x/==x
i = 0; x = function () { if (i++ > 4) { return true; } return x; }
x() === x()() === x()()()
i = 0; x = { valueOf: function () { return i++ ? 1 : 3; } }
x > 2 && x < 2
delete x.a && x.a;
x = { toString: function() { return 0; } }; x[0] = x
x[x]==x
typeof new x < typeof x
x = Math.pow(2, 54)
x - 1 === x + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment