Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created September 28, 2011 11:25
Show Gist options
  • Save hanksudo/1247708 to your computer and use it in GitHub Desktop.
Save hanksudo/1247708 to your computer and use it in GitHub Desktop.
A function reutrn repeat_words
function repeat_word(str, n) {
return new Array(n+1).join(str);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment