Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created February 21, 2013 21:26
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • 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
@nathancerny
Copy link

typeof typeof x === 'string'

@getify
Copy link

getify commented Feb 22, 2013

ES3 only. Don't cheat. :)

@azproduction
Copy link

Late, but done :)

@lushchick
Copy link

It took some time =) Nice stuff! https://gist.github.com/lushchick/5016434

@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