title: JavaScript: Write a function that takes an input character and returns that character repeated 5 times using recursion
body: <p>Write a function that takes an input character and returns that character repeated 5 times using recursion. For example, if the input is 'g', then the output should be 'ggggg'.</p>
  
  <p>I tried the code below: </p>
  
  <pre><code>function repeater(char) {
  
    let newStr = ''; 
  
    if (newStr.length === 5){
      return newStr; 
    }
  
    else {
      newStr += char; 
    }
  
    return repeater(char); 
  }
  
  // To check if you've completed the challenge, uncomment these console.logs!
  console.log(repeater('g')); // should return 'ggggg'
  //console.log(repeater('j')); 'jjjjj'
  </code></pre>
  
  <p>My code returns: <code>RangeError: Maximum call stack size exceeded</code></p>
  
  <p>What am I doing wrong?  </p>