Chrome Extension

Get a bigger word from a javascript array

console.log(longestStringReduce(['boop', 'bloomburg', 'hello']));

function longestStringReduce(arr) {
  return arr.reduce((a, b) => a.length < b.length ? b : a, "");
}

//bigger word
//bloomburg

Do you know, you can create and search your own code snippets on Devsheet. Store your code on cloud using devsheet and search using its chrome extension. Is it look cool?

Get a bigger word from a javascript array

Search Index Data (The code snippet can also be found with below search text)

Get a bigger word from a javascript array
Was this helpful?
0 Comments
Never leave your website again in search of code snippets by installing our chrome extension.