I want to make word counter in JavaScript. But I don\'t know how.
I want to fill this code:
function wordCount() { var value = txt.value; var s