Skip to main content
deleted 45 characters in body
Source Link
PleaseStand
  • 5.6k
  • 2
  • 24
  • 44

JavaScript (108102 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supportsRequires support for arrow functions. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=l=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(RegExp('(.)\\'+l+'*','g'),function(a,b)a=>a.length+b)) 

JavaScript (108 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supports. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=l=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(RegExp('(.)\\'+l+'*','g'),function(a,b)a.length+b)) 

JavaScript (102 characters)

Requires support for arrow functions. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=l=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(RegExp('(.)\\'+l+'*','g'),(a,b)=>a.length+b)) 
eliminate 1
Source Link
PleaseStand
  • 5.6k
  • 2
  • 24
  • 44

JavaScript (90108 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supports. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=j=k=l=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(/RegExp('(.)\1*/g\\'+l+'*','g'),function(a,b)a.length+b)) 

JavaScript (90 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supports. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(/(.)\1*/g,function(a,b)a.length+b)) 

JavaScript (108 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supports. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=l=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(RegExp('(.)\\'+l+'*','g'),function(a,b)a.length+b)) 
Source Link
PleaseStand
  • 5.6k
  • 2
  • 24
  • 44

JavaScript (90 characters)

This will work in no other browser than Mozilla Firefox because it uses the nonstandard "expression closures" extension to ECMAScript that only Mozilla supports. This will work unmodified in JavaScript Shell or otherwise when print is changed to alert.

for(j=k=-~'',j=++j+j,j*=++j;j--;)print(k=(''+k).replace(/(.)\1*/g,function(a,b)a.length+b))