the code unobfuscated is:
(a=[a=[]]['sort'])()['alert'](1)
my argument is that this is the same, and less chars
(a=[]['sort'])()['alert'](1)
I can't see any benefit of the encapsulation of the array assignment there.
edit: also, just noticed that my previous comments i was writting $=[[]] when i was thinking of $=[], but both works the same, and are still less chars :)
here i kept $, only step 11 required [] instead of $
i'm guessing step 14 is actually executed earlier... or that undefined has the same effects as [] for most of those stringfying hacks.
Update: no, undefined trhows an error. so step 14 is earlier... let me replace all that with a eval function that also stores the run order. then i will post the correct ordering.
the code unobfuscated is: (a=[a=[]]['sort'])()['alert'](1)
my argument is that this is the same, and less chars (a=[]['sort'])()['alert'](1)
I can't see any benefit of the encapsulation of the array assignment there.
edit: also, just noticed that my previous comments i was writting $=[[]] when i was thinking of $=[], but both works the same, and are still less chars :)