0
Free MOCK
Apply Internship
Blog
Learning
Roadmap
Others
Login
Beginner
JavaScript
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
Show Solution
Reset
Output
Run Code
Click 'Run Code' to see the output