Find the Longest Word in a String. Why

cod is `var rememberLength = 0;

function findLongestWord(items) {
var item = items.split(’ ');
for (var index = 0; index < item.length; index++) {
var element = item[index].length;
wynik = chcekLength(element);
}

return wynik;
}
function chcekLength(element) {
if (rememberLength < element) {
rememberLength = element;

}
return rememberLength;

}
findLongestWord(“May the force be with you”);
This code return 5 but dont pass test in this string example.

Thanks a lot. I will check this tomorrow how it will be work. I will change my code and i’m going to write new version of it.