Exercism.io - Word Count
I did the JavaScript Word Count exercise on Exercism.io tonight. It was a pretty interesting little exercise. Basically, you accept a string and count the number of times each word appears.
So calling it like this:
words("test another test string");
Would result in the following return: