/calculating-averages

Javascript kata to calculate the average for an arbitrary number of arguments.

Primary LanguageJavaScript

JAVASCRIPT KATA : Calculating averages !

Description:

Let's build a calculator that can calculate the average for an arbitrary number of arguments.

The test expects you to provide a Calculator object with an average method:

// Foo
Calculator.average()

The test also expects that when you pass no arguments, it returns 0. The arguments are expected to be integers.

It expects Calculator.average(3,4,5) to return 4.

Solution : calculator.js

Source : codewars