Roman Numeral Converter
Last updated September 2023
freeCodeCamp Certification Project
![Logo for the JavaScript programming language](/assets/img/proj-previews/preview-js-logo.png)
Developer Credits
- Developed by Daniel Fletcher
Project Link
Link will open in a new tab.
Skills & Technologies
- JavaScript
Project Details
JavaScript implementation of a function that converts a base-10 integer to its Roman numeral counterpart.
Do you ever find yourself wondering what 287 would look like as a Roman numeral? Look no further! This JavaScript implementation of a Roman numeral conversion function can answer that question (it's CCLXXXVII) and many others like it.
The CodePen link above will open an in-browser code editor and console. Tinkering at the console will enable you to interface with the convertToRoman
function I implemented. Note that all other functions are designed as helper functions and are therefore not expected to be called directly.
Here are a few more conversions for trying at the console:
- 1 → I
- 17 → XVII
- 350 → CCCL
- 4999 → MMMMCMXCIX
Relevant links:
Related Projects
This is certification project 2 of 5 in the JavaScript Algorithms and Data Structures track at freeCodeCamp. Each of my project submissions in this track is linked below.
Roman Numeral Converter
Sep 2023
JavaScript implementation of a function that converts a base-10 integer to its Roman numeral counterpart.
Caesars Cipher
Sep 2023
JavaScript implementation of the Caesar cipher substitution algorithm. Uses the common ROT13 variant.