Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created February 21, 2013 21:26
Show Gist options
  • Save padolsey/5008396 to your computer and use it in GitHub Desktop.
Save padolsey/5008396 to your computer and use it in GitHub Desktop.
A little JS [ES3] task: In each case, implement `x` so that the expression is true. Do not modify the expressions though. Post your solutions as a fork of this gist. ***Remember: ES3 only.
x() === x()() === x()()()
x > 2 && x < 2
delete x.a && x.a;
typeof new x < typeof x
x - 1 === x + 1
@screamy
Copy link

screamy commented Feb 23, 2013

Nice quiz
expression with delete still didn't solved

@vjeux
Copy link

vjeux commented Feb 24, 2013

Couldn't find #4 and #6: https://gist.github.com/vjeux/5022831

@frontdevops
Copy link

var x = Infinity;
x - 1 === x + 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment