I\'m trying to find the longest word in a string, but it continually returns the length of the first word. Any ideas?
Here\'s my code:
function findL
Your return statement should be outside the for loop. It only executes the first loop then bails out.