daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -const actions = [
  2. -  writeLine("Jake Weary"),
  3. -  writeLine("ScarJo"),
  4. -  writeLine("Chris Hemsworth"),
  5. -  writeLine("Mark Ruffalo")
  6. -]
  7. -
  8. + // Cycle these 4 names 100 times
  9. +const names = ["Jake Weary", "ScarJo", "Chris Hemsworth", "Mark Ruffalo"]
  10. +
  11. +const actions = Array
  12. +  .from(Array(100).keys())
  13. +  .map(i => writeLine(names[i % names.length]))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top