Advertisement
AbdulMuttaqin

tes mumbling 2

Jan 15th, 2021
1,130
0
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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement