Mean median mode dev

Solution for mean, median and mode
This looks a little messy, I would probably declare the variables you're assigning things to separately from the ones you're leaving as undefined.