Hướng dẫn thử thách
1 / 1
Build a String Repeating Function
In this lab, you will create a function that repeats a given string a specific number of times. For the purpose of this lab, do _not_ use the built-in `.repeat()` method.
**Objective:** Fulfill the user stories below and get all the tests to pass to complete the lab.
**User Stories:**
1. You should create a function named `repeatStringNumTimes` that takes two parameters: a string and a number.
2. The function should return the string repeated the specified number of times.
3. If the number is less than or equal to zero, the function should return an empty string.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.js
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵