Created
April 6, 2015 16:56
-
-
Save dalemanthei/ca76771c0b731818e164 to your computer and use it in GitHub Desktop.
String fill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stringFill2(x, n) { | |
var s = ''; | |
while (n-- > 0) s += x; | |
return s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment