Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vishal-raj-1/Awesome-JavaScript-Projects
/ count
Method
count
assets/js/wordCounter.js:9–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
});
8
}
9
count() {
10
let
wordStat = this.getWordStat(this.inputText.value.trim());
11
this.emitEvent(wordStat);
12
}
13
emitEvent(wordStat) {
14
// create count envent
15
let
countEvent =
new
CustomEvent(
"count"
, {
Callers
1
constructor
Method · 0.95
Calls
2
getWordStat
Method · 0.95
emitEvent
Method · 0.95
Tested by
no test coverage detected