how do i test this function in javascripts?
function repeat(text,n) { result=""; for(var i=0; i result+=text; } return result;}
the instructions are as follows
This function accepts a string (text) and an integer number (n). The function must return a string that has n repetitions of text. If n is non-positive this function must return the empty string.
a screenshot of it working would be amazing or an explenation how
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here