Limit Roman Numeral Converter to 3999 in the description

Tell us what’s happening:

The calculator referenced by the website does something strange, which is to get 4000 as MMMM; it should really not repeat the symbol more than 3 times but rather do IV with a line crossing above the letter.

So to make the student do the right thing and not worry about how to get that “overscore” in the console, I recommend to limit the exercise to 3999 and make it clear in the description.

Your code so far

function convertToRoman(num) {
return num;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Roman Numeral Converter

Link to the challenge:

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.