Skip to content

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}**

ozimos/words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

words

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}

About

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}**

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published