JavaScript Algorithms and Data Structures Projects - Roman Numeral Converter

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

function convertToRoman(num) {
  const romano = [
  1000 = "M",
  900 = "CM",
  500 = "D",
  400 = "CD",
  100 = "C",
  90 = "XC",
  50 = "L",
  40 = "SG",
  10 = "X",
  9 = "IX",
  5 = "V",
  4 = "IV",
  1 = "I"
  ]
  for(let a = 0; a < romano.length;a++ )
  if (num > 0) {
    num = romano.concat
  }
  
}
convertToRoman(36);
console.log(romano)

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36

Challenge Information:

JavaScript Algorithms and Data Structures Projects - Roman Numeral Converter

Bienvenido al foro @danigames1e

Los elementos de la matriz no están estructurados correctamente.

Feliz codificación