Challenge: Write a function that takes a string as a parameter and returns the longest word in that string.
Conditions: The function name must be
longestString. If multiple words are the longest, the last one should be returned.
After you’ve sent your solution, the bot will run tests like
longestWord('Welcome to FCC!'); which should return
Here’s where I require your help. There are only so many challenges I can think of myself. If you have one or more ideas for a challenge, head over to https://icecub.nl/gitter/bobsbotty/ and follow the instructions to add your own challenge(s) to the bot (no registration required). After submission, you can track the status of your (and everyone elses) challenge(s) here.
Once the bot is live, I’ll update this thread about it. Thank you for your help and happy coding!