JSchallenger

Return the longest string from an array of strings

Viewed: 1280
Attempted: 1435
Solved: 329
// Write a function that takes an array of strings as argument
// It should return the longest string

function myFunction() {

return
}
Test Cases:
myFunction(['help', 'me'])
Expected
'help'
myFunction(['I', 'need', 'candy'])
Expected
'candy'