Your code passes.
Reset the step and try again. If that doesn’t work, refresh the page, disable dark mode, disable ad blockers. Or, use another browser.
If the above steps do not work, you may need to restart the computer.
You should have an input element with an id of number.
Failed: You should have a button element with an id of convert-btn.
Failed: You should have a div element with an id of output.
Failed: 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.
Failed: 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
Failed: When the #number element contains the number 4000 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.
Failed: When the #number element contains the number 9 and the #convert-btn element is clicked, the #output element should contain the text IX.
Failed: When the #number element contains the number 16 and the #convert-btn element is clicked, the #output element should contain the text XVI.
Failed: When the #number element contains the number 649 and the #convert-btn element is clicked, the #output element should contain the text DCXLIX.
Failed: When the #number element contains the number 1023 and the #convert-btn element is clicked, the #output element should contain the text MXXIII.
Failed: When the #number element contains the number 3999 and the #convert-btn element is clicked, the #output element should contain the text MMMCMXCIX.
You should have an input, a button, and an output element. The input should take in a number and convert it when the button is clicked. The result should be shown on the page using the required element.
Your code should handle missing input, too small and too large numbers (-1 and 4000).