rhea0110 / count-words Goto Github PK
View Code? Open in Web Editor NEWWrite a function countWords() to count the numbers of words in a string. A word is defined as text separated by space(' ') or multiple spaces. The function will receive a string as input and return the numbers of words in this string.