Find the Longest Word in the String

you should check what’s in lowToHigh with

console.log(JSON.stringify(lowToHigh))

then read this post on the array sort function

1 Like