Tag: javascript

Counting Words With JavaScript

Counting Words With JavaScript

Recently I needed to find a way to count the words in a paragraph and chop it if it’s too long. There’s a quick way to do this in JavaScript using the native split method. Working on the Node.js command line gives you a nice way to see how...