Tell us what’s happening:
based on my currently written code i should fulfill the objective 4, 5, and 6 but why is the system didn’t think so?
Your code so far
<!-- file: index.html -->
<input id="number">
<button id="convert-btn">Click here</button>
<div id="output"></div>
/* file: script.js */
const number = document.getElementById('number')
const button = document.getElementById('convert-btn')
const output = document.getElementById('output')
button.addEventListener("click", converter);
function converter(){
if (!number.value){
output.innerHTML = "Please enter a valid number."
} else if (number.value < 1){
output.innerHTML = "Please enter a number greater than or equal to 1."
} else if (number.value >= 4000){
output.innerHTML = "Please enter a number less than or equal to 3999."
}
}
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Challenge Information:
Build a Roman Numeral Converter Project - Build a Roman Numeral Converter