Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created September 28, 2011 11:31
Show Gist options
  • Save hanksudo/1247722 to your computer and use it in GitHub Desktop.
Save hanksudo/1247722 to your computer and use it in GitHub Desktop.
A function reutrn repeat_words
function repeat_word(str, n) {
var s = ''
for (i=0; i<n; i++) {
s += str;
}
return s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment