module.exports = function (number) {

  var answer = '';
  var romanNumbers = [
    {value: 1000, substitution: 'M'},
    {value: 900, substitution: 'CM'},
    {value: 500, substitution: 'D'},
    {value: 490, substitution: 'XD'},
    {value: 100, substitution: 'C'},
    {value: 90, substitution: 'XC'},
    {value: 50, substitution: 'L'},
    {value: 40, substitution: 'XL'},
    {value: 10, substitution: 'X'},
    {value: 9, substitution: 'IX'},
    {value: 5, substitution: 'V'},
    {value: 4, substitution: 'IV'},
    {value: 1, substitution: 'I'}
  ];
  var transform = number;

  if (transform !== parseInt(transform, 10)){
    throw new TypeError('Input should be a integer number');
  }

  if (transform < 0 || transform > 4999){
    throw new RangeError('The number should be in 0 and 4999 range');
  }

  if(transform === 0){
    answer = 'nulla';
  }

  if (transform >= 1) {
    romanNumbers.forEach(function (romanNumber) {
      for (; transform >= romanNumber.value; transform -= romanNumber.value) {
        answer += romanNumber.substitution;
      }
    });
  }

  return answer;
};

@@ -553,16 +553,45 @@
 '%7D%0A  %5D;%0A
+  const MIN = 0, MAX = 4999;%0A
   var tr
@@ -739,17 +739,19 @@
 sform %3C 
-0
+MIN
  %7C%7C tran
@@ -758,20 +758,19 @@
 sform %3E 
-4999
+MAX
 )%7B%0A    t
@@ -818,18 +818,32 @@
  in 
-0 and 4999
+'+ MIN +' and ' + MAX+ '
  ran
@@ -872,17 +872,19 @@
 orm === 
-0
+MIN
 )%7B%0A    a

add range constants