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
Implement repeat function with parameters and error handling
- Added str and count parameters to repeat function
- Used String.repeat to repeat str count times
- Throws error if count is negative
- Added tests for count = 1, 0, and negative values
0 commit comments