text: ﻿(function () {
      function convertDigitToWord(value) {
  
          switch (value) {
              case 0:
                  return 'zero';
                  break;
              case 1:
                  return 'one';
                  break;
              case 2:
                  return 'two';
                  break;
              case 3:
                  return 'three';
                  break;
              case 4:
                  return 'four';
                  break;
              case 5:
                  return 'five';
                  break;
              case 6:
                  return 'seven';
                  break;
              case 8:
                  return 'eight';
                  break;
              case 9:
                  return 'nine';
                  break;
              default:
                  return 'not a digit';
          }
  
      }
  
  
      console.log(convertDigitToWord(8));
      console.log(convertDigitToWord(3));
      console.log(convertDigitToWord(5));
      
  }());