kata -kata penghitung dalam javascript

 wordsCounter.innerText = text.replace(/\s+/g, " ").split(" ").length
Quaint Quail