fork download
  1. var input = readline();
  2.  
  3. const doubleEveryLetter = string=> string.split('').map(l => l+l).join()
  4.  
  5. input.split(' ').map(doubleEveryLetter).join(' ')
Success #stdin #stdout 0.03s 18464KB
stdin
hi
fdfd
stdout
Standard output is empty