freeCodeCamp's Roman Numeral Converter project for the JavaScript certification track.
Roman numerals are based on seven symbols and can be written using various combinations to represent Arabic numerals. For example:
Roman numerals Arabic numerals M 1000 CM 900 D 500 CD 400 C 100 XC 90 L 50 XL 40 X 10 IX 9 V 5 IV 4 I 1 Objective: Build an app that is functionally similar to https://roman-numeral-converter.freecodecamp.rocks
- You should have an
input
element with anid
of"number"
√ - You should have a
button
element with anid
of"convert-btn"
√ - You should have a
div
element with anid
ofoutput
√ - When you click on the
#convert-btn
element without entering a value into the#number
element, the#output
element should contain the text"Please enter a valid number"
√ - When the
#number
element contains the number-1
and the#convert-btn
element is clicked, the#output
element should contain the text"Please enter a number greater than or equal to 1"
√ - When the
#number
element contains the number4000
or greater and the#convert-btn
element is clicked, the#output
element should contain the text"Please enter a number less than or equal to 3999"
√ - When the
#number
element contains the number9
and the#convert-btn
element is clicked, the#output element
should contain the text"IX"
√ - When the
#number
element contains the number16
and the#convert-btn
element is clicked, the#output
element should contain the text"XVI"
√ - When the
#number
element contains the number649
and the#convert-btn
element is clicked, the#output
element should contain the text"DCXLIX"
√ - When the
#number
element contains the number1023
and the#convert-btn
element is clicked, the#output
element should contain the text"MXXIII"
√ - When the
#number
element contains the number3999
and the#convert-btn
element is clicked, the#output
element should contain the text"MMMCMXCIX"
√
Fulfill the user stories and pass all the tests below to complete this project. Give it your own personal style. Happy Coding!