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

Tell us what’s happening:

Describe your issue in detail here.

I’m trying to run tests after doing a bit of this project but the corresponding FreeCodeCamp exercise page won’t respond. Is that a connectivity problem or some other thing I should be aware of? Thank you so much fellow campers

Your code so far

```html

document.getElementById(“convert-btn”).addEventListener(“click”, () => {
const click = document.getElementById(“convert-btn”);
const num = document.getElementById(“number”);
const out = document.getElementById(“output”);
if (number=’ ') {
out.innerHTML = “Please enter a valid number”
}
else if(num = -1) {
out.innerHTML = “Please enter a number greater than or equal to 1”
}
)


```css
/* file: styles.css */

/* file: script.js */
document.getElementById("convert-btn").addEventListener("click", () => {
const click = document.getElementById("convert-btn");
const num = document.getElementById("number");
const out = document.getElementById("output");
if (number=' ') {
  out.innerHTML = "Please enter a valid number"
  }
 else if(num = -1) {
  out.innerHTML = "Please enter a number greater than or equal to 1"
}
)

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

1 Like

I apologize, but I fail to understand why the template hasn’t been filled. I’ve added my problem, my code, browser info and the lot. Why won’t it show?

The tests do not run because you have an important syntax error. Specifically your {} are unbalanced

1 Like

Aah absolutely. Thanks so much lad.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.