1

I found something who disturbed me.

How can a navigator can interpret this kind of code :

[][(![]+[])[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+

as javascript ??

Here is a fiddle :

http://jsfiddle.net/6Cr4H/

Does every languages have an atomic form like this ??

BENARD Patrick
  • 30,363
  • 16
  • 99
  • 105
  • 1
    Is that a practical question or a game ? There are many examples of such games. – Denys Séguret Sep 17 '13 at 08:28
  • thats most likely obfuscated code ( http://en.wikipedia.org/wiki/Obfuscation_%28software%29 ) and done because guys like you wanna look into the code... and the autor wants to keep it a secret as much as possible ( but yes, there are ways to get behind that ) or simply a self developed parser in that javascript – Najzero Sep 17 '13 at 08:28
  • This question appears to be off-topic because it asks to interpret one specific example of a golfed code. – Denys Séguret Sep 17 '13 at 08:29
  • ( look my rep, i'm a newbie, it's a real question for me ) – BENARD Patrick Sep 17 '13 at 08:29
  • Also see [this](http://stackoverflow.com/questions/7202157/can-you-explain-why-10) – devnull Sep 17 '13 at 08:29
  • 1
    And many more: http://stackoverflow.com/search?q=[javascript]+%22![]%22 – Felix Kling Sep 17 '13 at 08:29
  • thanks a lot for your links. I've learned something today with your answers. – BENARD Patrick Sep 17 '13 at 08:30
  • Yes, it's good to know how that works, because even when you don't obfuscate code you probably use casts a lot in JS and this is mostly about the strange rules of casting. – Denys Séguret Sep 17 '13 at 08:32

0 Answers0