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 1cc87c5 commit a0605d6Copy full SHA for a0605d6
Sprint-3/2-practice-tdd/count.js
@@ -1,8 +1,6 @@
1
function countChar(stringOfCharacters, findCharacter) {
2
const charRegex = new RegExp(findCharacter, "g");
3
- console.log(charRegex, typeof charRegex, "regex");
4
const charArr = [...stringOfCharacters.matchAll(charRegex)];
5
- console.log(charArr, "array");
6
return charArr.length;
7
}
8
0 commit comments