Numeric to Roman converter

Numeric to Roman converter
0

#1

Tell us what’s happening:
i am failing to convert the numeral to roman

Your code so far

function convertToRoman(num) 
{
  var numbers = [1,2,3,4,5,6,7,8,9,10,20,50,100,500,1000];
  var roman   = [I,II,III,IV,V,VI,VII,VIII,IX,X,XX,L,C,D,M];
  
  var Roman = " ";
  
  
 
}

convertToRoman(36);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36.

Link to the challenge:


#2

Where’s your code? You’ve merely assigned two variables in a function. Give us a bit more and perhaps someone can help you out. The forum is not here to do it for you, but if you try and have errors or difficulties we can give you hints.


#3

Adding to what @Soupedenuit said, your first step should be to write out your algorithm in plain language and then convert your written algorithm to code.