Essential JavaScript

Biggest Animal Kata

Given an array of animal objects that all have a name and size property, return the name of the animal with the greatest size.

The size of each animal will be an integer greater than zero.

There will never be a tie - you can trust that all animals in the array will have unique sizes.

Code Editor