1.0.0 • Published 8 years ago

calculating-averages v1.0.0

Weekly downloads
7
License
ISC
Repository
github
Last release
8 years ago

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

1.0.0

8 years ago