Write a function that takes a Roman numeral and returns a decimal number, i.e.
input: IV output: 4
input: XI output: 11
The algorithm is as follows: if the number is followed by a larger number, its value is subtracted, else it is added.
npm install
npm test
npm run test-dev # run the tests with a watcher
Winner is who:
- passes tests
- is fast
- writes elegant code