Here is an example array:
var friendName = ['RupaKhan','Sunny','Rohul','Mistry','Zumman','Asif','Liza','Fulo'];
How do you find the longest name in the array? But you have to use a function with return as well as find as largest name.
I tried this method but it doesn't show a result: