Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created October 13, 2010 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mklabs/623985 to your computer and use it in GitHub Desktop.
Save mklabs/623985 to your computer and use it in GitHub Desktop.
// 5: given the following array, create an array that contains the contents of
// each array item repeated three times, with a space between each item. so,
// for example, if an array item is 'foo' then the new array should contain an
// array item 'foo foo foo'. (you can assume the library of your choice is
// available)
var myArray = [ 'foo', 'bar', 'baz' ];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment