findTheLongestWord("the quick brown fox jumped over a lazy dog"); should return 6 because the longest word is jumped. Approach: initialize two variables, counter for sentence count and longestWord for the longest word count Loop through the sente...

Markdown supported · ⌘↵ to post
No responses yet.