Write a function countWords($str) that takes any string of characters and finds the number of times each word occurs. You shou | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 9

Write a function countWords($str) that takes any string of characters and finds the number of times each word occurs. You shou

7th May 2017, 12:25 PM
ndamulelo witness
ndamulelo witness - avatar
5 Answers
+ 11
You shou... ... ld add a description instead of typing everything in the header.
7th May 2017, 12:28 PM
Tashi N
Tashi N - avatar
+ 9
Is this your homework you should try to write yourself and ask about the queries.
7th May 2017, 12:31 PM
Ekansh
+ 8
@Tashi N Ayyyyyyy, we got SoloLearn Batman right here
7th May 2017, 12:33 PM
Complex
Complex - avatar
0
I know nothing about it I'm just st helping my lil sister so I decided to download the app thinking she can get help ..
7th May 2017, 12:41 PM
ndamulelo witness
ndamulelo witness - avatar
0
hi
7th Sep 2019, 5:09 AM
likhi daddy
likhi daddy - avatar