Skip to content

Commit 2b58083

Browse files
author
Arthur
committed
Go back to original sprint 2
1 parent 46adf4d commit 2b58083

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
function repeatStr(str, count) {
1+
function repeatStr() {
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.
4-
let repeatedStr= "";
5-
6-
for(i=0; i<count; i++){
7-
repeatedStr= repeatedStr + str;
8-
};
9-
return repeatedStr;}
10-
11-
12-
4+
return "hellohellohello";
5+
}
136

147
module.exports = repeatStr;
15-
16-
17-
18-
19-
20-

0 commit comments

Comments
 (0)