Skip to main content
Commonmark migration
Source Link

##JavaScript ES6, 63 58 52 49 bytes

JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

##JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

##JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscorenderscore for saving 11 bytes!

##JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

##JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

changing approach...
Source Link
nicael
  • 4.8k
  • 24
  • 43

##JavaScript ES6, 63 58 5252 49 bytes

c=>c.replace(/\w/g,x=>"fedcba9876543210"[+x=>('0x'+x15-`0x${x}`)].toString(16))

Based on my Japt answer (strange that not vice-versa :D)

Thanks to nderscore for saving 11 bytes!

##JavaScript ES6, 63 58 52 bytes

c=>c.replace(/\w/g,x=>"fedcba9876543210"[+('0x'+x)])

Based on my Japt answer (strange that not vice-versa :D)

Thanks to nderscore for saving 11 bytes!

##JavaScript ES6, 63 58 52 49 bytes

c=>c.replace(/\w/g,x=>(15-`0x${x}`).toString(16))

Thanks to nderscore for saving 11 bytes!

added 4 characters in body
Source Link
nicael
  • 4.8k
  • 24
  • 43
Loading
deleted 5 characters in body
Source Link
nicael
  • 4.8k
  • 24
  • 43
Loading
Source Link
nicael
  • 4.8k
  • 24
  • 43
Loading