BeginnerJavaScript

Find the longest word in a string

Write a function to find the longest word in a string.

Examples

Input: "The quick brown fox"

Output: "quick"

Your Solution

Output

Click 'Run Code' to see the output