Essential JavaScript

Biggest Pumpkin Kata

You are working on a robot that grows miniature pumpkins and picks them. When someone orders a miniature pumpkin online, the robot needs to look at three miniature pumpkins and pick the biggest one to send to the customer. Customers want the ripest miniature pumpkin they can get.

Given the width of three miniature pumpkins in inches, return the width of the biggest miniature pumpkin.

Code Editor