Build a Roman Numeral Converter Project - Build a Roman Numeral Converter

Tell us what’s happening:

I have no Idea what I’m doing wrong. I’m currently on step 4 of the Roman Numeral Converter Project. I feel like I’ve entered step 4 perfectly and everywhere I check it says it’s good also. But for some reason it’s saying I didn’t enter it correctly. What am I doing wrong?

Your code so far

<!-- file: index.html -->
<input id="number"></input>
<button id="convert-btn"></button>
<div id="output"></div>
/* file: script.js */
const convertBtn = document.getElementById("convert-btn");
const numEl = document.getElementById("number");
const outputEl = document.getElementById("output");
convertBtn.addEventListener('click', (e) => {
  e.preventDefault();
const text = numEl.value.trim();
if (!text) {
  outputEl.innerText = "Please enter a valid number";
  return;
}

});
/* 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/146.0.0.0 Safari/537.36 OPR/130.0.0.0

Challenge Information:

Build a Roman Numeral Converter Project - Build a Roman Numeral Converter

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/build-a-roman-numeral-converter-project/657bdc8ba322aae1eac38390.md at main · freeCodeCamp/freeCodeCamp · GitHub

hello @PMBOY welcome back to the forum!

have you linked the script.js file to the html?

Thank you for your help.