Homepage
Sign in / Sign up
Go to the profile of Kamil Breguła
Kamil Breguła
Apr 3, 2016
Three Ways to Find the Longest Word in a String in JavaScript
Sonya Moisset
13422

My proposition:

return Math.max.apply(null, “The quick brown fox jumped over the lazy dog”.split(‘ ‘).map(function (v) { return v.length } ))

  • Go to the profile of Kamil Breguła

    Kamil Breguła

    • Share
    Go to the profile of Kamil Breguła
    Never miss a story from Kamil Breguła, when you sign up for Medium. Learn more
    Never miss a story from Kamil Breguła