Javascript Revisited - Finding the Sum, Mean, Median By Anh K. Hoang on Mar 4, 2014 Write four functions: sum, mean, and median. Each accepts an array and returns its respective calculation. The syntax seems more like C++ than ruby.