Bowling Game exercise in Javascript
generate-babel-boilerplate was used to create the initial structure.
A more functional approach was taken rather than a OO approach as the complexity is far less.
Built using ES2015/ES6 features such as arrow functions.
Both scoreCalculator
and getValueOfRolls
functions are idempotent. However, the functions within those have side effects. It would be nice to remove those to make them easily available in the future without being concerned about the implications.