Code Kata to process an integer sequence to determine the following statistics:
- Minimum Value
- Maximum Value
- Average Value
E.g. For a integer sequence "6, 9, 15, -2, 92, 11" we have the following answers:
- Minimum Value: -2
- Maximum Value: 92
- Average Value: 18.1666666
Kata Source: Practicing programming with Code Kata and Javascript/Jasmine
- Bower
- Karma
- Jasmine (karma-jasmine)
- RequireJS
- PhantomJS (If you're interested in Headless Browser testing, like the way this project is configured. If not change the karma config file and you're good.)
- Node
- NPM
- PhantonJS (Optional, if you're interested in headless browser testing.)
$ mkdir int-seq-kata-js
$ cd int-seq-kata-js
$ bower init
$ bower install karma
$ bower install karma-jasmine
$ bower install requirejs
$ karma init
- Blog post by Ben Nadel
- Article by Paulo Ortins