Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alexpaluzzi/6116f90b8ae76a18dbd879c2e284cf40 to your computer and use it in GitHub Desktop.
Save alexpaluzzi/6116f90b8ae76a18dbd879c2e284cf40 to your computer and use it in GitHub Desktop.
cjg
['Baby','Mommy','Daddy','Grandma','Grandpa','Let\'s go hunt',].map((i,f,a)=>{l=a.length-1==f;console.log(`${l?`${i}`:`${i} shark`}, ${'doo, '.repeat(5)}doo\n`.repeat(3)+`${i} ${l?`\nRun away,...`:`shark!`}`)});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment