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}
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
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 0
No packages published