We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ae80a5 commit 1cb231dCopy full SHA for 1cb231d
Sprint-3/2-practice-tdd/count.js
@@ -1,5 +1,5 @@
1
function countChar(stringOfCharacters, findCharacter) {
2
-totalCount=stringOfCharacters.split("");
+const totalCount=stringOfCharacters.split("");
3
Count=0
4
for(i=0; i<totalCount.length; i++){
5
if(totalCount[i]===findCharacter){
@@ -8,7 +8,7 @@ for(i=0; i<totalCount.length; i++){
8
}
9
return Count
10
11
-console.log(countChar("AAA","A"))
+console.log(countChar("aaaa","a"))
12
module.exports = countChar;
13
14
Sprint-3/2-practice-tdd/repeat-str.js
function repeatStr(times, str) {
- if (times < 0){ throw ("error")}
+ if (times < 0){ throw ("error input required to repeat")}
return str.repeat(times);
0 commit comments