JSchallenger

Return the longest string from an array of strings

Viewed: 428
Attempted: 369
Solved: 93
// 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'