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 2a87e48
Browse filesBrowse the repository at this point in the historyBrowse files
// 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.
4
-
5
-
if(count===0){
6
-
return"";
2
+
if(count<0){
3
+
thrownewError("Invalid input: count must be a non-negative integer");
0 commit comments