You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2553f70
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: practice-tdd/repeat-str.js
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,7 @@ export function repeatStr(str, count) {
5
5
if(count===0){
6
6
return"";
7
7
}
8
-
9
-
8
+
10
9
// 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).
11
10
// The goal is to re-implement that function, not to use it.
12
11
letresult="";
@@ -18,11 +17,4 @@ export function repeatStr(str, count) {
0 commit comments