Question: Your challenge is to take an array of strings and output the longest string in the array. So for

```
["tiny", "small", "bigger", "biggest"]

```

the output would be `biggest`.

If two elements of the array have the same length, you should choose the one that appears first in the array. That means if the array looks like this:

```
["one", "two", "no"]

```

the output is `one`, but if the array looked like this:

```
["two", "one", "no"]

```

the output is `two`.

---

As this is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), the shortest code in bytes wins.

Answer: 
Japt `-h`, ~~5~~ 3 bytes
========================

```
ÔñÊ

```

[Try it](https://ethproductions.github.io/japt/?v=1.4.6&code=1PHK&input=WyJlZHVyIiwib290IiwidGFodCJdCi1o)

Reverse, sort by length and output the last element.
[Attache](https://github.com/ConorOBrien-Foxx/attache), 9 bytes
===============================================================

```
MaxBy&:`#

```

[Try it online!](https://tio.run/##SywpSUzOSP2fpmBl@983scKpUs0qQfm/X2pqSnG0SkFBcnosF1dAUWZeSUhqcYlzYnFqcXSajkI0lwIQRCuVZOZVKukoKBXnJubkgBhJmenpqUVwVnGJUqwOVG1@XipIvKQ8H0Tl5SNkoEJQBSAZrtjY/wA "Attache – Try It Online")

This is simply bonding the size operator (``#`) to the left of `MaxBy`. This is equivalent to:

```
f[x] := MaxBy[Size, x]

```

...which selects the first element with the largest size in `x`.