str (первый аргумент) для num times (второй аргумент). Верните пустую строку, если num не является положительным числом. Не забудьте использовать Read-Search-Ask, если вы застряли. Напишите свой собственный код. repeatStringNumTimes("*", 3) должен возвращать "***" .'
    testString: 'assert(repeatStringNumTimes("*", 3) === "***", "repeatStringNumTimes("*", 3) should return "***".");'
  - text: ''
    testString: 'assert(repeatStringNumTimes("abc", 3) === "abcabcabc", "repeatStringNumTimes("abc", 3) should return "abcabcabc".");'
  - text: 'repeatStringNumTimes("abc", 4) должен возвращать "abcabcabcabc" .'
    testString: 'assert(repeatStringNumTimes("abc", 4) === "abcabcabcabc", "repeatStringNumTimes("abc", 4) should return "abcabcabcabc".");'
  - text: 'repeatStringNumTimes("abc", 1) должен возвращать "abc" .'
    testString: 'assert(repeatStringNumTimes("abc", 1) === "abc", "repeatStringNumTimes("abc", 1) should return "abc".");'
  - text: 'repeatStringNumTimes("*", 8) должен возвращать "********" .'
    testString: 'assert(repeatStringNumTimes("*", 8) === "********", "repeatStringNumTimes("*", 8) should return "********".");'
  - text: 'repeatStringNumTimes("abc", -2) должен возвращать "" .'
    testString: 'assert(repeatStringNumTimes("abc", -2) === "", "repeatStringNumTimes("abc", -2) should return "".");'
  - text: Нельзя использовать встроенный метод repeat()
    testString: 'assert(!/\.repeat/g.test(code), "The built-in repeat()-method should not be used");'
```