code: function repeat(str, n) {
      var result = '';
  
      for (var i = 0; i < n; i++) {
          result += str;
      }
  
      return result;
  }
docs: Repeats a string `n` time.
  @param  {String} str String to be repeated.
  @param  {Number} n   Number of times to repeat.