Skip to content

Commit 44e44a8

Browse files
authored
Modify repeatStr to accept parameters
Updated repeatStr function to accept parameters for string and count.
1 parent e38f3b2 commit 44e44a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-3/2-practice-tdd/repeat-str.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function repeatStr() {
1+
function repeatStr(str, count) {
22
// Your implementation of this function must *not* call String.prototype.repeat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat).
33
// The goal is to re-implement that function, not to use it.
44
let result = "";

0 commit comments

Comments
 (0)