DEV Community

Discussion on: Daily Challenge #135 - The Wide Mouthed Frog!

Collapse
 
benchislett profile image
Benjamin Chislett
const mouth_size = a => (a == "alligator") ? "small" : "wide"
Collapse
 
hyftar profile image
Simon Landry

The animal isn't case insensitive in your code mounth_size('aLlIgAtOr') will return 'wide' while it should return 'small'