How to the length of the longest word in the provided sentence?

Comparing word length to each other
<script>
alert(findLongestWordLength("Go was designed with parallel and concurrent processing in mind.")); // 10
function findLongestWordLength(str) {
  return str.split(" ")
    .reduce((highest, next) => { // comparing word length to each other
      return Math.max(highest, next.length);
    }, 0);
}
</script>
Most Helpful This Week