Given a stringstrand numbern, write a program in Javascript that recursively appends a copy of stringstrntimes and returns the resulting string in a sentence explaining whether the resulting string has an odd or even amount of the passed instr. For example:
RecuriveCopy("a", 10)//-> "aaaaaaaaaaa has a(n) odd number of a's"RecursiveCopy("blah",5)//-> "blahblahblahblahblahblah has a(n) even number of blah's"
Please complete the following function:function RecursiveCopy(str, n) {// your code here}
The problem must satisfy the following:
Hints:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here