Skip to content

Commit a0605d6

Browse files
committed
refactor 2-practice-tdd/count task
1 parent 1cc87c5 commit a0605d6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Sprint-3/2-practice-tdd/count.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
function countChar(stringOfCharacters, findCharacter) {
22
const charRegex = new RegExp(findCharacter, "g");
3-
console.log(charRegex, typeof charRegex, "regex");
43
const charArr = [...stringOfCharacters.matchAll(charRegex)];
5-
console.log(charArr, "array");
64
return charArr.length;
75
}
86

0 commit comments

Comments
 (0)