Answers to exercises in "Functional programming in Scala" book in Javascript.