longest string in an array || JavaScript Challenges #Shorts

preview_player
Показать описание
#Shorts

longest string in an array

make sure to subscribe to our channel, to get regular updates and get content like this.

Рекомендации по теме
Комментарии
Автор

hi developers ,

other

const longestStr = (arr)=>{
return arr.reduce((previous, current)=>{
return previous.length > current.length ? previous : current
})
}

lonelydev
Автор

Are you in a race 😂
Why are you going so fast 🤷‍♂️

dennisefranco
join shbcf.ru