DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
longest word javascript
function solution(text) { return text.match(/[a-zA-Z]+/g).sort((a, b) => b.length - a.length)[0]; }
PREVIOUS
NEXT
Tagged:
#longest
#word
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit