58Plus - a JavaScript challenge
- Goal 1: Craft some JS code doing an `alert(1)`
- Goal 2: Accomplish a 58 - 58 or more in the counter below
- Rule 1: Code must be 58 characters or more in length (only ASCII, whitespace doesn't count)
- Rule 2: No eval or eval-like constructs
- Rule 3: Code must work on Firefox (extra pro points and fame for Chrome)
- You know you won when both counters turn green - and the `alert(1)` appears after clicking `eval
- Length
- Different chars
Winners:
- @m_satyr: 65 characters
- @kkotowicz: 65 characters
#9=[{},];!2+~<wyiopsdfghjkzxvnm-_/>?alert(1):5|7^3&6%0*$\ub4c8.@q
- @0x6D6172696F: 65 characters
;#9={},[alert(0x2?1:34^5*678/\ubcdf|g%h&+i-~!jk<$_m>nopq.@svwyz)]
- @internot_: 64 characters
#9=[{}].@_,0?2+3-4*5/6&7|8^~!$<b>c%dfghijkmnopqsuvwxyz:alert(1);
- @kkotowicz: 64 characters
$\u9408=~[{},]%2*!<wyiopsdfghjkzxcvbnm-_/>?.5|7^3&6+@q:alert(1);
- @0x6D6172696F: 64 characters
;#9={},[alert(0x2?1:~!34<5%6>7-8+b/c*df|g&hi^jkm.@nop$_qsuvwyz)]
- @internot_: 64 characters
#9=[{}].@_,0?2+3-4*5/6&7|8^~!$<b>c%dfghijkmnopqsuvwxyz:alert(1);
- @internot_: 63 characters
throw{false:#0=dump}[!(2%3&4^~5-6|7*8+9)in<bcgjkqvxyz_/>.@$],1;
- @ax330d: 63 characters*
alert([0.2?1|3>4<5-6:7^9*~8])+_$,!qwy\uio&p%kzxcvbnsd/fghjm={};
- @m_satyr: 63 characters*
[alert({}?1:!~0+2-3*4/5%6<=7.>8&9|$_ghijkmnopqsvwxyz^\ubcdf),];
- @ax330d: 62 characters*
alert([0.2?1|3>4<5-6:7^9*~8])+_$,!qwy\uio&p%kzxcvbnsdfghjm={};
- @reinmarpl: 62 characters
{$_qwyuopsghjkzxc=!~find?+5|3>6<v*m.@b:8%7&9};alert([4/2-1^0])
- @theharmonyguy: 58 characters*
{[$_bcdfghijkmnopqsuvwxyz=!~2?3<4:+5%6/7*8>9-0,alert(1)]};
- @reinmarpl: 58 characters*
{$_qwyuopsghjkzxcvb=!~find?+5|3>6<7:8&9};alert([4/2-1.^0])
- @hasegawayosuke: 58 characters*
alert(1)|~0!=+2>-3<4.5/6*7,{bcdfghijkmnopqsuvwxyz$_:[89]};
- @bitsofspy: 58 characters*
3.489&[qwyuiopsdfghjkzxcvbnm=!0]^~+-alert(1)*{}/2,5>6<7;_$
- * = works on Chrome too