Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/find-the-longest-word-in-a-string

How can i solve this problem?
Need solution with explanation :woozy_face:

if you really need it, you can find it in the guide (“Get a Hint” button), we will not tell you the solution

but if you show what you have tried so far we can guide you toward a working algorithm