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
if(stringOfCharacters.slice(i,i+1)==findCharacter){//take each character out from string to compare with the given character. If true, then add one to countTime.
4
+
if(stringOfCharacters[i]==findCharacter){//take each character out from string to compare with the given character. If true, then add one to countTime.
Copy file name to clipboardExpand all lines: Sprint-3/2-practice-tdd/repeat-str.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,13 @@ function repeatStr(str, count) {
2
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
3
// The goal is to re-implement that function, not to use it.
0 commit comments