AbdulMuttaqin

tes mumbling 2

Jan 15th, 2021
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. function accum(s) {
  3.   const mumbling = s.split('').map((letter,idx)=>{
  4.     return `${letter.toUpperCase()}${letter.toLowerCase().repeat(idx)}`;
  5.   });
  6.   return mumbling.join('-');
  7. }
RAW Paste Data