Algorithm with JS
Aug 11, 2021 · 1 min read · 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...
Join discussion
