Skip to content

Commit 7923fde

Browse files
authored
Ban string.repeat (#1320)
1 parent 9c3d4d8 commit 7923fde

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function repeatStr() {
2+
// 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).
3+
// The goal is to re-implement that function, not to use it.
24
return "hellohellohello";
35
}
46

0 commit comments

Comments
 (0)