js trouver le mot le plus long dans la fonction de chaîne
function findLongestWordLength(str) {
return Math.max(...str.split(' ').map(word => word.length));
}
Tiger King
function findLongestWordLength(str) {
return Math.max(...str.split(' ').map(word => word.length));
}