JS-99: Ninety-Nine JavaScript Problems Star on GitHub


These are JavaScript translation of famous functional programming series Ninety-Nine problems already done in Haskell, List, Prolog and Scala.

Even though JavaScript has some functional aspects, probably no one did this before due the lack of some functional features, specially pattern matching. The ideal is to use only pure JavaScript for problems solving, however we're using z library just for pattern matching only.
To install z in your Node.js project is simple: npm install z and require on your JavaScript file require('z') which provides the $match method on Arrays that makes pattern matching able. Everything else on solutions are just plain JavaScript!

Problem {{$index + 1}}

{{problem.description}}

Example: {{problem.example}}
Should result: {{problem.result}}
{{problem.solution}}