Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-04 17:44:12 -05:00
commit a9b855dcc1

View File

@ -47,6 +47,9 @@ function countChars(string) {
if (currentChar.charCodeAt(0) == 10 || currentChar.charCodeAt(0) == 13 || currentChar.charCodeAt(0) == 30 || currentChar.charCodeAt(0) == 115 || currentChar.charCodeAt(0) == 21 || currentChar.charCodeAt(0) == 118) {
currentChar = "newline";
}
if (currentChar.charCodeAt(0) == 32) {
currentChar = "whitespace"
}
if (letterCount[i] > 0) {
outputString += "Number of " + currentChar + "'s: " + letterCount[i] + "\n";
}