I am trying to write a basic javascript function to find the longest word in a string and log it\'s length.
So far I have:
function findLongestWord(
if (words[i].length > longest[0].length)
You will be getting error in above line. As at first time, it is empty.