Last active
August 7, 2017 12:26
-
-
Save bytao7mao/dd359289e35b5f317ffa0dd599cdd758 to your computer and use it in GitHub Desktop.
repeat function
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 repeat(str, num) { | |
return str.repeat(num); | |
} | |
repeat("abc ", 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment