🎉 Exercism Research is now launched. Help Exercism, help science and have some fun at research.exercism.io 🎉
Track JavaScript
JavaScript track

Word Count

An exercise from the JavaScript track
easy

About this exercise

Given a phrase, count the occurrences of each word in that phrase.

lists
regular expressions
strings
loops
View all solutions