HTML, CSS, JS and other unsorted stuff

Brainfuck like Javascript

, ,

You think you know Javascript?

Eat this!
([][(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]]()[(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]])((![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[][(![]+[])[+[]]+(![]+[]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]])
Just copy that code, type javascript: into the address bar, paste the code after it and press enter to see what it does - or put it in script tags on one of your web pages.

Yes, the above code is indeed JavaScript, even if it reminds a little bit of Brainfuck.

It works because:
++[[]][+[]] == 1
If you want to know why, just read this comment from John Resig.

PS: No, you won't buy a washing machine if you test the above code bigsmile
PPS: Of course I cheated and used a converter for it, because I am not that good in writing JavaScript, I hardly understand why it works like it does wink

Jetzt weiß ich endlich wozu ein MacBook Air gut istSmall WOT UserJS Update

Comments

Cutting Spoonhellspork Friday, October 7, 2011 11:43:20 PM

I think this just made my year.

DitherDitherSky Sunday, February 19, 2012 12:33:55 AM

Uncaught exception: TypeError: Cannot convert undefined or null to Object
lol

QuHno Sunday, February 19, 2012 7:20:28 PM

Sigh ...
... the miracles of the changed JIT Javascript compiler, it interprets some things slightly different - try it with 11.52 wink

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies