Skip to content

A function called *words* that takes in a string argument and counts the occurrences of each word in the string.

Notifications You must be signed in to change notification settings

seunzone/word-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word-count

Write a function called words that takes in a string argument and counts the occurrences of each word in the string.
The function should return a JSON object showing the words identified, and their occurrences. For example for the input olly olly in come free, the output should be **{olly: 2, in: 1, come: 1, free: 1}

Install Dependencies

npm install

Run the Test

npm run test

About

A function called *words* that takes in a string argument and counts the occurrences of each word in the string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published