Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6), 39 37 bytes

JavaScript (ES6), 39 37 bytes

x=>"-~".repeat(x<0?-x:x).slice(x<0)+0

Saved 2 bytes thanks to @Neil

#JavaScript (ES6), 39 37 bytes

x=>"-~".repeat(x<0?-x:x).slice(x<0)+0

Saved 2 bytes thanks to @Neil

JavaScript (ES6), 39 37 bytes

x=>"-~".repeat(x<0?-x:x).slice(x<0)+0

Saved 2 bytes thanks to @Neil

added 41 characters in body
Source Link
Huntro
  • 489
  • 1
  • 3
  • 9

#JavaScript (ES6), 3939 37 bytes

x=>("x=>"-~".repeat(x<0?-x:x)+0).slice(x<0)+0

Saved 2 bytes thanks to @Neil

#JavaScript (ES6), 39 bytes

x=>("-~".repeat(x<0?-x:x)+0).slice(x<0)

#JavaScript (ES6), 39 37 bytes

x=>"-~".repeat(x<0?-x:x).slice(x<0)+0

Saved 2 bytes thanks to @Neil

added 30 characters in body
Source Link
Huntro
  • 489
  • 1
  • 3
  • 9

#JavaScript (ES6), 39 bytes

x=>("-~".repeat(x<0?-x:x)+0).slice(x<0)
x=>("-~".repeat(x<0?-x:x)+0).slice(x<0)

#JavaScript (ES6), 39 bytes

x=>("-~".repeat(x<0?-x:x)+0).slice(x<0)

#JavaScript (ES6), 39 bytes

x=>("-~".repeat(x<0?-x:x)+0).slice(x<0)
Source Link
Huntro
  • 489
  • 1
  • 3
  • 9
Loading