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