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...
anythingweb.hashnode.dev1 min read
No responses yet.