function repeat(str, n) {

	// Create an array of length n+1 and use .join to seperate the elements by the specified character. 	
	return Array(n+1).join(str);
}
// Helper function to repeat a string 'str' by 'n' times
Helper function to repeat a string 'str' by 'n' times
Helper function to repeat a string ' str ' by ' n ' times
function repeat(str, n) {
	return Array(n+1).join(str);
}
function repeat ( str , n ) { return Array ( n + 1 ) . join ( str ) ; }
Helper function to repeat a string 'str' by 'n' times
Helper function to repeat a string ' str ' by ' n ' times
// Create an array of length n+1 and use .join to seperate the elements by the specified character. 	