Repeat for N amount of times
The function will copy N times for the first parameter (string), and the copied strings must be separated by commas.
Sample Code:
function repeatInp(inp,num) {
// Enter your logic here...
}
Examples:
Input: 'meow',3
Output: 'meow,meow,meow'
Explanation: The string 'meow' has been repeated 3 times and being separated by a comma.
Input: 1,4
Output: '1,1,1,1'
Explanation: The number 1 has been repeated 4 times and being separated by a comma.